TOOL.BuildCPanel

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameBuildCPanel
SyntaxTOOL:BuildCPanel( CPanel )
DescriptionBuilds the control panel that shows at the left when the tool is selected.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=TOOL.BuildCPanel]TOOL.BuildCPanel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionMake a header and a label.
Used onNewerClient.png
Code
 
function TOOL.BuildCPanel( CPanel )
 
	CPanel:AddControl( "Header", { Text = "#Tool_toolname_name", Description = "#Tool_toolname_desc" }  )
 
	CPanel:AddControl( "Label", { Text = "Hello World!" }  )
 
 
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox