Garry's Mod Wiki

DMenuOption:AddSubMenu

  Panel DMenuOption:AddSubMenu( string Name, function func = nil )

Description

Creates a sub DMenu and returns it. Has no duplicate call protection.

Arguments

1 string Name
Name of the sub menu.
2 function func = nil
Function to execute when this sub menu is clicked.

Returns

1 Panel
The created DMenu to add options to.