Garry's Mod Wiki

DPanelSelect:AddPanel

  DPanelSelect:AddPanel( Panel pnl, table conVars = nil )

Description

Adds a panel to be selectable.

Arguments

1 Panel pnl
The panel to add.
2 table conVars = nil
ConVars to set when this panel is selected. Keys are the cvar name, value is the value for that cvar.