Garry's Mod Wiki

Revision Difference

Panel:SetEnabled#565727

<function name="SetEnabled" parent="Panel" type="classfunc"> <description> Sets the enabled state of a disable-able panel object, such as a <page>DButton</page> or <page>DTextEntry</page>. Sets the enabled state of a panel object that supports being disabled, such as a <page>DButton</page> or <page>DTextEntry</page>. ⤶ Disabled panels cannot be interacted with, and have a different appearance to indicate this.⤶ See <page>Panel:IsEnabled</page> for a function that retrieves the "enabled" state of a panel. </description> <realm>Client and Menu</realm> <args> <arg name="enable" type="boolean">Whether to enable or disable the panel object.</arg> </args> </function>