Garry's Mod Wiki

DMenuOption

Description

This is used internally - although you're able to use it you probably shouldn't.

Internal subpanel that represents an option used by DMenu.

Parent

Derives from DButton.

Methods

Panel DMenuOption:AddSubMenu()
Creates a sub DMenu and returns it. Has no duplicate call protection.
boolean DMenuOption:GetChecked()
Returns the checked state of DMenuOption.
boolean DMenuOption:GetIsCheckable()
Returns whether the DMenuOption is a checkbox option or a normal button option.
Panel DMenuOption:GetMenu()
No Description
DMenuOption:OnChecked( boolean checked )
Called whenever the DMenuOption's checked state changes.
DMenuOption:SetChecked( boolean checked )
Sets the checked state of the DMenuOption. Does not invoke DMenuOption:OnChecked.
DMenuOption:SetIsCheckable( boolean checkable )
Sets whether the DMenuOption is a checkbox option or a normal button option.
DMenuOption:SetMenu( Panel pnl )
No Description
DMenuOption:SetSubMenu( Panel menu )
This is used internally - although you're able to use it you probably shouldn't. Used internally by DMenuOption:AddSubMenu to create the submenu arrow and assign the created submenu to be opened this this option is hovered.
DMenuOption:ToggleCheck()
Toggles the checked state of DMenuOption. Does not respect DMenuOption:GetIsCheckable.

Page Links


Special Pages


Wikis

?

Render Time: 25ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 12
Render Body 0
Render Sidebar 6