Problem closing window
Posted: Thu Dec 28, 2006 23:57
Hi all,
For my game, I pre-load several windows and pre-bind each button.
Then, I use
to show a window (only one window is shown at a time).
I use
to hide the window.
It's working, but the problem is that "sometimes" the windows doesn't get closed. It seems that the bug appears only when the mouse isn't over a button (In my game, I can manually close the ingame menu by pressing escape key)
Am I completely wrong with my method? Or did I miss something?
For my game, I pre-load several windows and pre-bind each button.
Then, I use
Code: Select all
mGUISystem->setGUISheet(mySheet);
to show a window (only one window is shown at a time).
I use
Code: Select all
mGUISystem->setGUISheet(0);
to hide the window.
It's working, but the problem is that "sometimes" the windows doesn't get closed. It seems that the bug appears only when the mouse isn't over a button (In my game, I can manually close the ingame menu by pressing escape key)
Am I completely wrong with my method? Or did I miss something?