Garry's Mod Wiki

ControlPanel

Description

Used by the context menu in sandbox.

Parent

Derives from DForm.

Methods

ControlPanel:AddControl( string type, table controlinfo )
We advise against using this. It may be changed or removed in a future update. It is recommended to use DForm's members instead. Adds a control to the control panel.
ControlPanel:AddPanel( Panel panel )
Adds an item by calling DForm:AddItem.
ControlPanel:ControlValues( table data )
Sets control values of the control panel.
ControlPanel:FillViaFunction( function func )
Calls the given function with this panel as the only argument. Used by the spawnmenu to populate the control panel.
ControlPanel ControlPanel:GetEmbeddedPanel()
Returns this control panel.
MatSelect ControlPanel:MatSelect( string convar, table options = nil, boolean autostretch = nil, number width = nil, number height = nil )
Creates a MatSelect panel and adds it as an item.

Page Links


Special Pages


Wikis

?

Render Time: 32ms

DB GetPage 2
Generate Html 7
SaveChanges (1) 8
Render Body 0
Render Sidebar 12