Garry's Mod Wiki

DMenu:OpenSubMenu

  DMenu:OpenSubMenu( Panel item, Panel menu = nil )

Description

Closes any active sub menus, and opens a new one.

Arguments

1 Panel item
The DMenuOption to open the submenu at
2 Panel menu = nil
The submenu to open. If set to nil, the function just closes existing submenus.