1
NGUI 3 Support / How to reset UIToggle to initial value
« on: February 06, 2014, 08:14:27 AM »
Hi there,
I have 3 UIToggle groups:
Group 1 Contains 2 tabs on the top of the screen
Group 2 is contained inside a transform that is being activated when tab 1 is clicked, and contains a set of 8 uitoggles, to change pages inside the tab content
Group 3 is contained inside a transform that is being activated when tab 2 is clicked, and contains a set of 8 uitoggles, to change pages inside the tab content
The scenario is:
1.- I am on first tab, and with first page actived
2.- I click on page 4, for instance, the content appears
3.- I click on tab 2
4.- I click on tab 1. Here i launch a "load page 1" method, which changes the content and activates the first Group 2 uitoggle (value = true).
The problem is that both page 4 and page 1 are now being highlighted.
Is there a way to "reset to initial state" the whole group?
Thanks!!
Oakshiro
I have 3 UIToggle groups:
Group 1 Contains 2 tabs on the top of the screen
Group 2 is contained inside a transform that is being activated when tab 1 is clicked, and contains a set of 8 uitoggles, to change pages inside the tab content
Group 3 is contained inside a transform that is being activated when tab 2 is clicked, and contains a set of 8 uitoggles, to change pages inside the tab content
The scenario is:
1.- I am on first tab, and with first page actived
2.- I click on page 4, for instance, the content appears
3.- I click on tab 2
4.- I click on tab 1. Here i launch a "load page 1" method, which changes the content and activates the first Group 2 uitoggle (value = true).
The problem is that both page 4 and page 1 are now being highlighted.
Is there a way to "reset to initial state" the whole group?
Thanks!!
Oakshiro