Garry's Mod Wiki

DMenuOption

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 methods, etc not listed on this page from DButton.

Implements

Implements or overrides the following hooks/methods. If you want to override these, you probably want to call the original function too.

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.

Special Pages


Wikis

?

Render Time: 21ms

DB GetPage 1
Generate Html 6
SaveChanges (1) 5
Render Body 0
Render Sidebar 7