Author Topic: How do you lock a button  (Read 1823 times)

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
How do you lock a button
« on: December 26, 2014, 08:46:52 PM »
Is there an easy method of "locking" a button?  For example if there is a menu option not available yet.  I thought I had seen it a long time ago in NGUI, but I can't find any functionality with it now.

« Last Edit: December 27, 2014, 02:17:53 AM by Disastercake »
Creator of Soul Saga.
http://www.disastercake.com

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How do you lock a button
« Reply #1 on: December 27, 2014, 09:26:28 AM »
UIButton.isEnabled = false