2D Toolkit Forum
2D Toolkit => Support => Topic started by: Cherubyx on February 06, 2015, 03:46:07 pm
-
Hello,
I have looked all over the forum and Google searched on how to make the contents of a scrollable area loop.
I'm trying to implement an age selector system and I would like the months to loop back to 1 after 12.
Is this possible? I have scrollable area working with a tk2dUILayoutItems from 1 to 12 but they stop at the edges of 1 or 12.
Thank you!
Cherubyx
-
No, its not possible.
The easiest way to do it would be to add duplicates at either end of the list so you end up with 1..12, 1..12, 1..12
start showing the middle set, and when the scroll goes past the center list, you wrap around.
-
Thank you, I'll try that out!
-
Sorry for double post but this is kind of urgent. Is there a way to set the default Content UILayout item to start scrolling from? I don't want it to be the first UILayout item in the content list of a scrollable area.
-
You an always get the position of the second - position of the first. That will give you the offset to the second.