GUI Grey-out issue

Started by Ytterbium, Sun 25/01/2004 20:17:47

Previous topic - Next topic

Ytterbium

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?

Currently in production: Septigon

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ytterbium


Currently in production: Septigon

SMF spam blocked by CleanTalk