View Single Post
07/25/14, 02:28 PM   #29
Sephiroth018
 
Sephiroth018's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 20
Originally Posted by merlight View Post
If Garkin says it's more complex, I'd trust that ZO_ScrollList is actually so complex that ZOS documented it for themselves ^^

This is the (complete) documentation for ZO_ScrollContainer:


This for ZO_ScrollList:


function ZO_ScrollList_AddDataType(self, typeId, templateName, height, setupCallback, hideCallback, dataTypeSelectSound, resetControlCallback)


Turns out I had ZO_ScrollContainer in mind the whole time, that's the simple container you put controls in.

With ZO_ScrollList, you have to supply a row setup function and raw data, and it creates the required row controls as it needs them. I think a good example is Inventory window. If you have 100 items, it probably doesn't contain 100 rows, but only as many as are simultaneously visible, and fills them with item data as you scroll.
And I created nearly the same logic myself...
Btw, where did you get that from? There is nothing about that in the wiki.
  Reply With Quote