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: 43ms

Session 0
DB GetPage 2
Generate Html 10
SaveChanges 13
Render Body 0
Render Sidebar 15