Panel.HasParent
From GMod Wiki
Function | |
Syntax | Panel:HasParent( Panel P ) |
Description: | |
Returns true if panel 'P' is above this panel in the parenting hierarchy. It does not return whether or not the panel has a parent. |
|
Returns: | Boolean |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.HasParent]Panel.HasParent [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- All vgui elements always have a parent apart from the 'CGModBase' panel, whose job is to be the super-parent of all vgui elements. New panels created with vgui.Create are parented to this by default, and it can be accessed by using vgui.GetWorldPanel.