G.ValidPanel

From GMod Wiki

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