TOOL.BuildCPanel
From GMod Wiki
Event Hook | |
Hook Name | BuildCPanel |
Syntax | TOOL:BuildCPanel( CPanel ) |
Description | Builds the control panel that shows at the left when the tool is selected. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=TOOL.BuildCPanel]TOOL.BuildCPanel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Text is what shows on the control panel.
- Description is what the tooltip says when you move your mouse over the control.
- CPanel is derived from DForm. You can add derma objects to it using DForm.AddItem. See DForm for examples
- It is recommended that you no longer use AddControl(TODO: Give a better alternative.)