Author Topic: Create 3 tabs with imageButton  (Read 2238 times)

mrinvisible

  • Guest
Create 3 tabs with imageButton
« on: December 17, 2013, 05:59:44 AM »
Hi, I am a newbie of NGUI and Unity.
   I have a question that: I try to create 3 tab with tab bar contains 3 ImageButton. Each ImageButton, I set 4 states.
And I want to when I click on Tab 1, ImageButton1 has state "pressed", 2 others has state "normal".

Sorry, but please help me :(.
Thank you!

mrinvisible

  • Guest
Re: Create 3 tabs with imageButton
« Reply #1 on: December 17, 2013, 06:02:06 AM »
And I tried with NGUI_3.0.7f1 :)

ChrisR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Re: Create 3 tabs with imageButton
« Reply #2 on: December 17, 2013, 06:31:52 AM »
Fake it instead.

Add a UIImage Button and a UIToggle to the same object GameObject. Set a background to be the target of the UIImage button, add the right images. Then add a checkmark as a target of the UIToggle. The checkmark will be whatever you want your tabbed state to be.

Copy and paste the GameObject, and set all the UIToggles to the same toggle group.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Create 3 tabs with imageButton
« Reply #3 on: December 17, 2013, 10:09:20 AM »

mrinvisible

  • Guest
Re: Create 3 tabs with imageButton
« Reply #4 on: December 17, 2013, 10:25:59 PM »
Thanks @ArenMook, that helped me :).
Thank you so much, again ^^!
Regards.