Sets the button's state


Button:SetButtonState("state", lock)


  • state - State for the button (string)

    • DISABLED - Button is disabled and cannot receive user input
    • NORMAL - Button is in its normal state
    • PUSHED - Button is pushed (as during a click on the button)

  • lock - Locks the button in the given state; e.g. if NORMAL, the button cannot be clicked but remains in the NORMAL state (boolean)