Garry's Mod Wiki

DPanel:SetIsMenu

  DPanel:SetIsMenu( boolean isMenu )

Description

Used internally by DMenu.

Sets whether the frame is part of a derma menu or not.

If this is set to true, CloseDermaMenus will not be called when the frame is clicked, and thus any open menus will remain open.

Arguments

1 boolean isMenu
Whether this pane is a Menu Component