Garry's Mod Wiki

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.