OBS Help

Discuss thug2 modding, post your own, share your ideas, ask questions.
chokomock
Posts: 3
Joined: Sat Oct 29, 2011 1:45 am
Contact:

OBS Help

Postby chokomock » Wed Jan 04, 2012 9:51 pm

I'm trying to get an observe function in my own menu. A obs function like in chadmod where you don't leave the game..

Anyway, so far i got this

Code: Select all

:i function $create_chok_menu$
   :i call $make_new_roundbar_menu$ arguments
        $title$ = %s(12,"CHOK Menu")$pad_back_script$ = $generic_menu_pad_back$$pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
   :i $add_roundbar_menu_item$:s{$text$ = %s(14,"START OBSERVE")$pad_choose_script$ = $EnterObserveMode$
   :i :s}
   :i $add_roundbar_menu_item$:s{$text$ = %s(13,"QUIT OBSERVE")$pad_choose_script$ = $ExitObserveMode$
   :i :s}
   :i $add_roundbar_menu_item$:s{$text$ = %s(6,"cancel")$pad_choose_script$ = $exit_pause_menu$
   :i :s}
   :i $roundbar_menu_finish$
:i endfunction


and i found the "real" observe function were u leave the game

Code: Select all

:i function $chose_observe$
   :i if call $ObjectExists$ arguments
         $id$ = $current_menu_anchor$
      :i call $DestroyScreenElement$ arguments
         $id$ = $current_menu_anchor$
   :i endif
:i endfunction

But that is not usefull for me lol.

I would appreciate if anyone who knows about this could help me :) thanks
chokomock
Posts: 3
Joined: Sat Oct 29, 2011 1:45 am
Contact:

Re: OBS Help

Postby chokomock » Thu Jan 05, 2012 2:25 am

Well, where can i find these functions? Or do you mean they doesnt exist anywhere? lol

Is there anywhere i can read a tutorial about this btw?

I'm noobish so I use statements, but I'll will hopefully learn more and someday make my menu prettier ;)
Siema
Posts: 26
Joined: Tue Mar 15, 2011 1:41 pm

Re: OBS Help

Postby Siema » Thu Jan 12, 2012 12:19 pm

Start Observe:

Quit Observe:

Return to “THUG2 modding”

Who is online

Users browsing this forum: No registered users and 1 guest