Garry's Mod Wiki

ContextBase

Description

A base for all context menu panels ( The ones used for tool options in sandbox )

Parent

Derives from Panel.

Methods

ContextBase:ControlValues( table contextData )
Called by spawnmenu functions (when creating a context menu) to fill this control with data.
string ContextBase:ConVar()
Returns the ConVar for the panel to change/handle, set by ContextBase:SetConVar
ContextBase:SetConVar( string cvar )
Sets the ConVar for the panel to change/handle.
ContextBase:TestForChanges()
You should override this function and use it to check whether your convar value changed.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

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