I can see in the docs that the UIToggle class has a 'option can be none' public attribute (
http://www.tasharen.com/ngui/docs/class_u_i_toggle.html#acab8b1d04ff9834035b4beb39d5c3205 ) but I am having trouble 'deselecting' the toggles to hide both the tabs in the supplied example.
I have 2 tabs set up as toggles, and 2 UIPanels containing content that switches on and off depending on the toggle.
When I run the app, nothing is selected so both UIPanel content is disabled.
When I hit tab 1, content 1 shows.
When I hit tab 2, content 1 hides and content 2 shows.
Now I want to get back to the stage when both UIPanels were disabled, so I assume there's a way to set the toggle back to 'none'?
I also script in JS.
Thanks in advance, loving NGUI!
G