SOLVED: pause/unpause game when gui visible/invisible

Started by barefoot, Sat 01/01/2011 11:34:36

Previous topic - Next topic

barefoot

Hi

I have been looking for an answer to this:

I know that you can select keypresses to pause and unpause a game, but i want to pause game when a gui button is used to bring up the main gui window.. then with a close gui on the main gui it closes the main gui and the game continues...

The button gui is: gnotepad and when clicked it brings up the main gui: gnotepad1 which pauses the game and has a button: Button9 which closes the main gui and unpauses game.

I know the game pauses when cusor in over control custom buttons.

any thoughts?

cheers

barefoot

I May Not Be Perfect but I Have A Big Heart ..

monkey0506

Just change the display type of the GUI (in the editor) from "Normal, initially off" to "Pause game when shown".

barefoot

I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk