Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Ernest on December 16, 2013, 04:17:05 AM

Title: Tab system using toggle problem
Post by: Ernest on December 16, 2013, 04:17:05 AM
Hi, i'm using the uiToggle and uiToggledObjects components to create a tab system (like specified in the new documentation), and i'm having a little problem when i launch the game: i can see the content in all the panels. I set the "Starting state" to true in my first tab and i set his associated panel in the Activate list in uiToggledObjects (and the other panels and the desactivate list). The problem does not occure anymore when i click on another tab and i come back to the first one.
Thanks for your support!
Title: Re: Tab system using toggle problem
Post by: ArenMook on December 16, 2013, 09:04:50 AM
Common issue it seems. People think that they need to set both "Activate" and "Deactivate" fields for each script.

That's not the case.

Only set the "Activate" section for each toggle. Don't touch the "Deactivate". It's automatic. Just look at what I did in the Tabs example.
Title: Re: Tab system using toggle problem
Post by: Ernest on December 17, 2013, 07:50:36 AM
Ok! Nice :) But why the Desactivate list is set public if we don't have to modify it manually?
Title: Re: Tab system using toggle problem
Post by: ArenMook on December 17, 2013, 10:05:57 AM
To make it possible to deactivate objects unrelated to other toggles.
Title: Re: Tab system using toggle problem
Post by: jezzurp on May 12, 2016, 09:39:59 AM
Common issue it seems. People think that they need to set both "Activate" and "Deactivate" fields for each script.

That's not the case.

Only set the "Activate" section for each toggle. Don't touch the "Deactivate". It's automatic. Just look at what I did in the Tabs example.

Hi

I'm currently trying to figure out how to make tabs in NGUI and have been going through your youtube tutorials but have yet to find a tabs one... any chance you could please point me in the right direction? (Thanks)
Title: Re: Tab system using toggle problem
Post by: ArenMook on May 14, 2016, 06:15:34 PM
Example 13 - Tabs?
Title: Re: Tab system using toggle problem
Post by: jezzurp on May 16, 2016, 04:25:27 AM
Hi

Thanks for reply, appreciated.

At the risk of sounding stupid (a common problem) I can't find 'example 13 - tabs'. Are you referring to a youtube tutorial or a page on this site?

I have tried
...using the site search on here
...browsing the demo pages
...& rooting through your youtube page
but can't find the tutorial you refer to?

Sorry / Thanks
Title: Re: Tab system using toggle problem
Post by: ArenMook on May 18, 2016, 04:54:48 AM
I don't think I ever created a youtube tutorial for it, but it's just one of NGUI's examples that come with it. Just import the Examples folder and you'll find it.
Title: Re: Tab system using toggle problem
Post by: jezzurp on June 01, 2016, 02:33:52 AM
Oh ok, that explains why I can't find it. Where I work NGUI is built into the environment but we dont have access to it in a file browser like that so cant get to the examples. Hmmph. Cheers anyway