2D Toolkit Forum

2D Toolkit => Support => Topic started by: bacon on August 22, 2012, 03:23:35 am

Title: List of scrolling items?
Post by: bacon on August 22, 2012, 03:23:35 am
How do you make a list of scrolling items?
Title: Re: List of scrolling items?
Post by: unikronsoftware on August 22, 2012, 06:54:23 am
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.
Title: Re: List of scrolling items?
Post by: praveee on February 02, 2014, 02:09:00 pm
Hey, how can i find the Clicked item on the Scroll List.  (something like get the index of the selected list item)
Title: Re: List of scrolling items?
Post by: unikronsoftware on February 03, 2014, 11:51:22 am
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.