Garry's Mod Wiki

ControlPresets

Description

A preset manager, found at the top of almost every default tool's C-menu.

This control only exists in Sandbox derived gamemodes.

View source

Parent

Derives methods, etc not listed on this page from Panel.

Methods

ControlPresets:AddConVar( string convar )
Adds a convar to be managed by this control.
table ControlPresets:GetConVars()
Get a list of all Console Variables being managed by this panel.
ControlPresets:SetLabel( string name )
Set the name label text.