Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Balax on October 20, 2014, 11:00:42 PM

Title: How can I make a drum roll list?
Post by: Balax on October 20, 2014, 11:00:42 PM
I want to make a drum roll list.
I think I should use UIScrollView and UIGrid To get that!

The idea is that I don't want to load every object in data list
when I have 500 data for example and add every data to list
even it is invisible!

Whenever the top row is get invisible, I will took off that row and
add it to the bottom of the list and the same idea for bottom row!

How can I?
Title: Re: How can I make a drum roll list?
Post by: ArenMook on October 20, 2014, 11:53:54 PM
Have a look at the endless scroll view example that comes with NGUI. That should get you started.
Title: Re: How can I make a drum roll list?
Post by: Balax on October 21, 2014, 03:34:52 AM
>Aren
Thanks! Now I figured out what to do!

For now , updating the topmost row or bottom most row when
OnInitializeItem is called! I check the row is topmost or bottom most
inside OnInitializeItem! It is ok when I drag slowly but when momentum
occurs, [i.e OnInitializeItem is called more than one time in one frame]
I can't control updating! Is there a way to limit OnInitializeItem get Called
when there is no OnInitializeItem doing in same frame?
Title: Re: How can I make a drum roll list?
Post by: ArenMook on October 22, 2014, 04:59:05 AM
You have the code. You can edit it to suit your needs. UIWrapContent is meant to be an example you could edit.