DMenuBar/AddOrGetMenu

From Garry's Mod
Revision as of 20:14, 10 February 2015 by TheFreeman193 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 DMenuBar:AddOrGetMenu( )

DescriptionPanelFunc

Retrieves a DMenu object from the menu bar. If one with the given label doesn't exist, a new one is created.

To add a DMenu without checking, use DMenuBar:AddMenu.

Arguments

string label

The name (label) of the derma menu to get or create.

Returns

Panel

The DMenu with the given label.
Personal tools
Navigation