Panel.IsVisible
From GMod Wiki
Function | |
Syntax | Panel:IsVisible( ) |
Description: | |
Returns whether or not the panel is visible. | |
Returns: | Boolean |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.IsVisible]Panel.IsVisible [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Determine whether Window is visible or not. |
---|---|
Used on | |
Code | if Window:IsVisible( ) then --If True else --If False end |
Output | False |
Additional Notes
- IsVisible only returns what was set by SetVisible.
Unfortunately when a panel is made invisible this property is not inherited by any child panels.
This means that if you call IsVisible on a panel parented to something which is invisible, it can still return true, contrary to what you might expect.