Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Divya Talluri on October 10, 2012, 06:09:41 AM

Title: on selection of the uicheckbox uipanel should be activated
Post by: Divya Talluri on October 10, 2012, 06:09:41 AM
hi Aren

I am using UICheckbox as a tab button and on click of each such tab button, each UIPanel should be activated
How can i implement this type of functionality using ngui?

Presently i set UICheckbox  'option' as true and attached UICheckBoxControlled Object and its target is given as UIPanel.
When i click on checkbox i made remaining uipanels disable by using nguitools.setactive as false, till this it is working fine.
But when clicked on first checkbox first panel gets visible and if i am clicking on the next checkbox, uipanel which is related to this is not visible until i click again on the first one.Is this the correct way to do tab navigation?

Please help me with this.

Thanks in advance.

Divya
Title: Re: on selection of the uicheckbox uipanel should be activated
Post by: ArenMook on October 10, 2012, 09:47:27 AM
Look at how UICheckboxControlledObject works. You can use it to activate specific game objects. It's used in the checkbox tutorial to activate an appropriate sprite, I believe. Either that, or UICheckboxControlledComponent. They work the same, just on different targets.