G.ValidPanel

From GMod Wiki

Revision as of 11:44, 15 December 2010 by Wizard of Ass (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.ValidPanel]G.ValidPanel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis is how it is defined. It's in lua/includes/extensions/panel.lua
Used onNewerShared.png
Code
function ValidPanel( pnl )
 
        if (!pnl) then return false end
 
        return pnl:IsValid()
 
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox