Garry's Mod Wiki

Garry's Mod Wiki

Description

We advise against using this. It may be changed or removed in a future update. This is derived from the deprecated DPanelList.

A base panel for things like DModelSelect. Basically, a list of panels that can be selected. Selected panel can be retrieved and has visual indication of being selected.

View source

Parent

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

Events

DPanelSelect:AddPanel( Panel pnl, table conVars = nil )
Adds a panel to be selectable.
DPanelSelect:FindBestActive()
This is used internally - although you're able to use it you probably shouldn't. Used internally by DPanelSelect:AddPanel to select the best default selected panel based on player's convars.
DPanelSelect:OnActivePanelChanged( Panel oldPnl, Panel newPnl )
Called when the selected panel changes.
DPanelSelect:SelectPanel( Panel pnl )
Selects a given panel.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...