Author Topic: UIButton  (Read 1256 times)

oldschoolj

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
UIButton
« on: March 12, 2014, 08:19:49 PM »
Hello,

I was wondering, lets say I have 4 buttons in a row like this:


Please Select Game a Mode
(Easy)    (Normal)    (Hard)   (Extreme)

Each button has a 2 sprites, 1 for up state, and 1 for clicked state:

button up =   (Easy)   
button clicked = (Easy)


I would like the button to stay with the clicked mode sprite, until the user selects a different option, or starts the game.

For example:

(Easy)    (Normal)    (Hard)   (Extreme)

 I cant find an option to do this.  Am I missing something?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton
« Reply #1 on: March 12, 2014, 09:28:59 PM »
Use a toggle for each button. Check Example 13 - Tabs, but instead of using UIButtonColor, use a UIButton. It has the ability to choose sprites for different states in addition to colors.