DButton.GetDisabled
From GMod Wiki
| Function | |
| Syntax | DButton:GetDisabled( ) |
| Description: | |
| Returns whether the button is disabled or not. | |
| Returns: | Boolean |
| In Object: | DButton |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DButton.GetDisabled]DButton.GetDisabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Gets a button's state. |
|---|---|
| Used on | |
| Code | //Gets the button's state if mybutton:GetDisabled() then print("This button is disabled!") end |
| Output | N/A |