Garry's Mod Wiki

DMenuBar:AddOrGetMenu

  Panel DMenuBar:AddOrGetMenu( string label )

Description

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

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

Returns

1 Panel
The DMenu with the given label.