Disabling pop-up GUI

Started by RocketGirl, Tue 06/12/2005 21:20:02

Previous topic - Next topic

RocketGirl

Maybe this should be obvious, but I'm stumped:

I have a Sierra-style GUI bar that pops up when the mouse goes above y 13. Sometimes this GUI calls other GUIs, like my custom Inventory screen or the Quit/New/Cancel screen. When it does, however, the main GUI toolbar still pops up if the mouse goes above y 13!

How do I prevent this? The only GUIs that will pop-up AND require that the main toolbar CAN'T are called by the main toolbar GUI, so I can just put a command in the script for those toolbar buttons that call the sub-GUIs and turn it back on when those sub-GUIs go away. But I can't FIND one in the docs.

Thanks.
May the Force be with you

Ashen

Quote from: The Manual
Visible property (GUI)

bool GUI.Visible

...

For "Mouse Ypos" GUIs, the Visible property does not actually determine whether the GUI can be seen, but instead it controls whether the GUI is allowed to pop up. If Visible is false, then moving the mouse to the top of the screen will not activate the GUI; if it is true, then the GUI will be allowed to be popped up.

So, there isn't a direct command, just use gGuiname.Visible = false; when you open the 'sub-GUIs', and set it back to true when you close them.
Assuming you're using the 'Mouse Ypos' visibility type, of course.
I know what you're thinking ... Don't think that.

RocketGirl

Oh, I see. Somehow, I completely missed that aspect of the visible attribute, the part where Ypos GUIs were an exception to the way it worked. *facepalm*

Thanks.

May the Force be with you

SMF spam blocked by CleanTalk