Type Panel
Panel Note that most methods are from the panel object itself, so you'll need to look up GLua's documentation on panels to find them. There are a few methods that are not exposed, or are modified slightly. See the panel-specific types for modified methods.
Methods
| isValid() | Returns whether the given panel is valid. |
| Replaces the given method with your function. |
Methods
- Panel:isValid()
-
Returns whether the given panel is valid. This method allows the use of the global IsValid() helper on panels, as VGUI uses upper-case "IsValid" which is not checked by IsValid().
Environment:
Client Panel:replaceMethod( name, replacementFunc )-
Replaces the given method with your function.
Deprecated: Use standard Lua assignment/method declarations, e.g. function Panel:DoClick() end.Environment:
ClientParameters:
-
name: The name of the method to replace. -
replacementFunc: The function that should replace this method.
-