DButton.SetEnabled

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DButton.SetEnabled]DButton.SetEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionEnables or Disables a specified DButton
Used onNewerClient.png
Code
DButton1.DoClick = function()
		   DButton2:SetEnabled( true ) --Can be either true or false
		   end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox