Page 1 of 1

OBS Help

Posted: Wed Jan 04, 2012 9:51 pm
by chokomock
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

Re: OBS Help

Posted: Thu Jan 05, 2012 2:25 am
by chokomock
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 ;)

Re: OBS Help

Posted: Thu Jan 12, 2012 12:19 pm
by Siema
Start Observe:

Quit Observe: