DButton.SetEnabled
From GMod Wiki
| Function | |
| Syntax |
DButton.SetEnabled( Boolean enabled ) Where is this used? |
| Description: | |
| False disables the buttons, however the button still can be clicked. True enables it. | |
| Returns: | nil |
| Part of Library: | DButton |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DButton.SetEnabled]DButton.SetEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Enables or Disables a specified DButton |
|---|---|
| Used on | |
| Code | DButton1.DoClick = function() DButton2:SetEnabled( true ) --Can be either true or false end |
| Output | N/A |
Additional Notes
- This function does make the button look like it's disabled, however it doesn't disallow the player from still clicking the button. To disable the button completely (disallowing clicking while disabled) use DButton.SetDisabled.