G.ValidPanel
From GMod Wiki
Function | |
Syntax |
ValidPanel( Panel Panel ) Where is this used? |
Description: | |
Replaces Panel:IsValid() with a check to see if the supplied Panel is nil before returning Panel:IsValid(). | |
Returns: | Boolean |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.ValidPanel]G.ValidPanel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This is how it is defined. It's in lua/includes/extensions/panel.lua |
---|---|
Used on | |
Code | function ValidPanel( pnl ) if (!pnl) then return false end return pnl:IsValid() end |
Output | N/A |