Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mrinvisible on December 17, 2013, 05:59:44 AM

Title: Create 3 tabs with imageButton
Post by: mrinvisible 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!
Title: Re: Create 3 tabs with imageButton
Post by: mrinvisible on December 17, 2013, 06:02:06 AM
And I tried with NGUI_3.0.7f1 :)
Title: Re: Create 3 tabs with imageButton
Post by: ChrisR 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.

Title: Re: Create 3 tabs with imageButton
Post by: ArenMook on December 17, 2013, 10:09:20 AM
This might also help: http://www.tasharen.com/forum/index.php?topic=7202.msg33960#msg33960
Title: Re: Create 3 tabs with imageButton
Post by: mrinvisible on December 17, 2013, 10:25:59 PM
Thanks @ArenMook, that helped me :).
Thank you so much, again ^^!
Regards.