DButton/SetDisabled

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(waitiing on css)
 
Line 1: Line 1:
 
{{PanelFunc
 
{{PanelFunc
|Description={{Deprecated|Use {{ClassFunction|DButton|SetEnabled}} instead}}Sets whether or not the DButton is disabled.
+
|Description={{Deprecated|Use {{ClassFunction|Panel|SetEnabled}} instead.}}Sets whether or not the DButton is disabled.
  
 
When disabled, the button is ''greyed out'' and cannot be clicked.
 
When disabled, the button is ''greyed out'' and cannot be clicked.

Latest revision as of 12:28, 20 December 2018

 DButton:SetDisabled( )

DescriptionPanelFunc

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

Use Panel:SetEnabled instead.
Sets whether or not the DButton is disabled.

When disabled, the button is greyed out and cannot be clicked.

Arguments

boolean disable

trueEnable the button
falseDisable the button
Personal tools
Navigation