Author Topic: on selection of the uicheckbox uipanel should be activated  (Read 1542 times)

Divya Talluri

  • Guest
on selection of the uicheckbox uipanel should be activated
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: on selection of the uicheckbox uipanel should be activated
« Reply #1 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.