Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Antitribu on March 28, 2014, 09:02:50 AM

Title: UIWrapContent to be used as a 'mainstream' scroll view?
Post by: Antitribu on March 28, 2014, 09:02:50 AM
The newest UIWrapContent seems like a perfect candidate to implement a mainstream scroll view logic — capable of presenting the (possibly) infinite list of uniform items from a data source, yet consuming the absolute minimum of memory (only rendering what's on-screen).

Yet, the only method it presents for such implementation, is 'UpdateItem'. IMHO, another standard method would fit in to complete the concept I am speaking about: 'GetCount' (to specify the end exact number of items to be presented).

Is such a thing planned to include into the UIWrapContent interface, or is it left up to be implemented by hand when needed?
Title: Re: UIWrapContent to be used as a 'mainstream' scroll view?
Post by: ArenMook on March 28, 2014, 09:22:49 AM
UIWrapContent is meant to be derived from to create custom functionality, so if you wanted to have a finite number of entries, that would be something you'd do in a derived class. I'll likely improve it in the future as I actually use this functionality myself though. I'm always hesitant to add stuff if I don't plan on making use of it myself as I know quality ultimately suffers if I do that.