Author Topic: Toggle groups - global?  (Read 4413 times)

danfoo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 93
    • View Profile
Toggle groups - global?
« on: December 06, 2013, 09:30:56 AM »
We are currently implementing a large number of controls using toggles. I have searched a bit but not found any indication that toggle groups are anything but global, and the possibility to use the root as a group definer seems to have been killed in 3.0.

Assuming that toggle group IDs are indeed global, how would you suggest to keep track of many toggle groups in a project (many of which will not be used simultaneously or in the same context at all)? Honestly, it seems like this is a big step down from the earlier implementation...?

Thanks in advance!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Toggle groups - global?
« Reply #1 on: December 06, 2013, 02:00:05 PM »
Being able to specify a group is quite a bit more convenient than having to specify a common root object, and then wonder why it breaks when you move the toggles somewhere else in the UI hierarchy. The value is indeed global, per-scene. However with how many value combinations there can be (4+ billion), choosing a unique group ID is not that challenging.

danfoo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 93
    • View Profile
Re: Toggle groups - global?
« Reply #2 on: December 07, 2013, 06:50:14 AM »
Being able to specify a group is quite a bit more convenient than having to specify a common root object, and then wonder why it breaks when you move the toggles somewhere else in the UI hierarchy. The value is indeed global, per-scene. However with how many value combinations there can be (4+ billion), choosing a unique group ID is not that challenging.

I never said that it was challenging to pick a unique ID. However, keeping track of group IDs in a somewhat organized manner does become an issue whereas with an automatic grouping based on hierarchy it was a non-issue. Just create the toggles and go...

Would it be possible to make the group IDs local to the panel in question at least? Maybe we use toggles differently but I can not think of a circumstance where one toggle would be moved from one group to another at runtime.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Toggle groups - global?
« Reply #3 on: December 07, 2013, 03:12:19 PM »
That might be safe enough. I'll give it some thought.