Garry's Mod Wiki

Revision Difference

DButton:SetDisabled#562211

<function name="SetDisabled" parent="DButton" type="panelfunc">⤶ <description>⤶ <deprecated>Use <page>Panel:SetEnabled</page> instead.</deprecated>Sets whether or not the DButton is disabled.⤶ ⤶ When disabled, the button is `greyed out` and cannot be clicked.⤶ </description>⤶ <realm>Client and Menu</realm>⤶ <args>⤶ <arg name="disable" type="boolean">When true Enable the button, when false Disable the button.</arg>⤶ </args>⤶ </function>⤶ ⤶