vgui/Register

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Also menu state)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=Register
 
|Parent=vgui
 
 
|Description=Registers a panel for later creation.
 
|Description=Registers a panel for later creation.
 
|Realm=Client and Menu
 
|Realm=Client and Menu
Line 22: Line 20:
 
}}
 
}}
 
{{Ret
 
{{Ret
|type=Panel
+
|type=table
|desc= panel
+
|desc=The given panel table from second argument
 
}}
 
}}

Latest revision as of 18:30, 26 November 2019

 vgui.Register( )

Contents

Description

Registers a panel for later creation.

Arguments

string classname

Classname of the panel to create.

Arguments

table panelTable

The table containg the panel information.

Arguments

string baseName

Name of the base of the panel.

Returns

table

The given panel table from second argument
Personal tools
Navigation