Garry's Mod Wiki

Revision Difference

DButton:SetDisabled#516740

<function name="SetDisabled" parent="DButton" type="panelfunc"> <ispanel>yes</ispanel> <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</realm> <args>⤶ <arg name="disable" type="boolean">{{TrueFalse|Enable the button|Disable the button</arg>⤶ </args>⤶ </function> }} {{Arg⤶ |type=boolean⤶ |name=disable⤶ |desc={{TrueFalse|Enable the button|Disable the button}}⤶ }}