DMenuBar/AddMenu

From Garry's Mod
Jump to: navigation, search
 DMenuBar:AddMenu( )

DescriptionPanelFunc

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

string label

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

Returns

Panel

The new DMenu which will be opened when the button is clicked.
Personal tools
Navigation