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?
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.
Thank you. This helps.