Author Topic: Tab system using toggle problem  (Read 3051 times)

Ernest

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 40
    • View Profile
Tab system using toggle problem
« 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tab system using toggle problem
« Reply #1 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.

Ernest

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 40
    • View Profile
Re: Tab system using toggle problem
« Reply #2 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tab system using toggle problem
« Reply #3 on: December 17, 2013, 10:05:57 AM »
To make it possible to deactivate objects unrelated to other toggles.

jezzurp

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Tab system using toggle problem
« Reply #4 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)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tab system using toggle problem
« Reply #5 on: May 14, 2016, 06:15:34 PM »
Example 13 - Tabs?

jezzurp

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Tab system using toggle problem
« Reply #6 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Tab system using toggle problem
« Reply #7 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.

jezzurp

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Tab system using toggle problem
« Reply #8 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