(Formerly known as GUIOff, which is now obsolete)
(Formerly known as GUIOn, which is now obsolete)
(Formerly known as InterfaceOff, which is now obsolete)
(Formerly known as InterfaceOn, which is now obsolete)
(Formerly known as IsGUIOn, which is now obsolete)
bool GUI.Visible
Gets/sets whether the GUI is visible or not. This property has behaves
differently depending on the GUI popup style.
For "Normal" and "Persistent" GUIs, this property simply switches the GUI
on and off, and has no further effects.
For "Popup modal" GUIs, setting Visible to true causes the game to become paused
until the GUI is removed by setting Visible back to false (eg. when the user
presses an OK button or something similar).
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.
Example:
gSettings.Visible = true;
will turn on the SETTINGS GUI.
See Also: IsGamePaused
|