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.

Page Links


Special Pages


Wikis

?

Render Time: 34ms

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