Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Moox on Wed 28/01/2004 04:01:17

Title: Gui problem
Post by: Moox on Wed 28/01/2004 04:01:17
  if (interface == SECRET) {
     SetDefaultCursor();
   if (button == 0) {  // END
     GUIOff (SECRET);
   }    
 }  // end of interface secret



it doesnt seem to work

what happens is if you use the talk cursor in a specific part of the game, a gui pops up with a secret "easter egg" as the image of button zero, it pops up, but it doesnt turn off.
Title: Re:Gui problem
Post by: Jimmy on Wed 28/01/2004 06:16:46
Hm...i don't know

try GUIoff(X)

where x is the gui number.
Working?
Title: Re:Gui problem
Post by: Ishmael on Wed 28/01/2004 07:58:57
I do... set the GUI button left-click action to "Run Script", if it isn't already.

And... Using GUIoff will result in a "Undefined token" compile error. The commands are case-sensitive.
Title: Re:Gui problem
Post by: Moox on Wed 28/01/2004 16:08:47
It works, thank you