2D Toolkit Forum
2D Toolkit => Support => Topic started by: bacon on August 22, 2012, 03:23:35 am
-
How do you make a list of scrolling items?
-
There isn't a built in component to do this - 2D Toolkit is a 2D plugin and the GUI support is basic, but you can build it yourself. Here is a really simple way to do super-efficient clipping for a scrolling list: http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,539.0.html
Its in the private support area, so you'll need to register to get it.
-
Hey, how can i find the Clicked item on the Scroll List. (something like get the index of the selected list item)
-
You handle the messages on these items as you create them. The scrollable area doesn't know about what is in it, so once you get the clicked message you can work out what index it is in your list using the tk2dUIItem reference that gets passed in.