Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ytterbium on Sun 25/01/2004 20:17:47

Title: GUI Grey-out issue
Post by: Ytterbium on Sun 25/01/2004 20:17:47
I'd like to set my GUIs to grey out when the game is paused. However, I'd like an animation on a GUI to show for a certain amount of time, and the only way I can think of that happening is the Wait command. So I've used...

GUIOn(PORTRAIT);
AnimateButton(PORTRAIT, 0, 7, 0, 0, 0);
WaitMouseKey(80);
GUIOff(PORTRAIT);

The only problem is that WaitMouseKey pauses the game, therefore greying the GUI where the animation is taking place. In the meantime, I've set GUIs to be unchanged when the game is paused, but I'd like them to grey out instead. Is there a way to keep the GUI on for a while without pausing the game?
Title: Re:GUI Grey-out issue
Post by: Ishmael on Sun 25/01/2004 20:47:31
Just before the animation is shown:

 SetGameOption(OPT_WHENGUIDISABLED,2);

and just after it:

 SetGameOption(OPT_WHENGUIDISABLED,0);

Will temporarely swich GUI to unchaged, then back to grey out.
Title: Re:GUI Grey-out issue
Post by: Ytterbium on Sun 25/01/2004 22:43:24
Thank you. This helps.