Open/Close GUI Window

Started by PsychicHeart, Thu 18/05/2006 09:51:31

Previous topic - Next topic

PsychicHeart

Okay,
so one of my GUI's is a "Pause" menu, effectively pausing
the game.
I've already scripted all the pause/unpause stuff,
that isn't a problem.
Now, i want the GUI to have options like Quit,
cancel, confirm etc.
So.
How will I be able to make 1 - the GUI come up when the 'esc' key (keycode 29-already scripted, don't worry about that),
and 2 - the GUI close when the player clicks
on "Cancel".
Appreciated,
-Fluke.
Formerly known as Flukeblake, Flukezy etc.

Ashen

Quote(keycode 29-already scripted, don't worry about that)

According to the manual, 27 is the code for escape. Does changing that solve the problem? If not, what exactly do you need (what is/isn't it doing)? (I assume you've found the GUI.Visible property.)

You shouldn't really need to script the "pause/unpause stuff" - using a popup modal GUI should pause automatically.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk