Garry's Mod Wiki

DMenuBar:AddMenu

DMenuBar:AddMenu

Panel DMenuBar:AddMenu( string label )

Description

Creates a new DMenu object tied to a DButton with the given label on the menu bar.

This will create a new menu regardless of whether or not one with the same label exists. To add or get a menu, use DMenuBar:AddOrGetMenu.

Arguments

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

Returns

1 Panel
The new DMenu which will be opened when the button is clicked.

Special Pages


Wikis

?

Render Time: 57ms

DB GetPage 37
Generate Html 4
SaveChanges (1) 7
Render Body 0
Render Sidebar 7