After some fiddling i start to get something, but i don't see any data in the list
Lua Code:
local scrollList = WINDOW_MANAGER:CreateControlFromVirtual("$(parent)ScrollList", window, "ZO_ScrollList")
scrollList:SetAnchor(TOPLEFT, window, TOPLEFT, 400, 20)
ZO_ScrollList_Initialize(scrollList)
local LOCATION_DATA = 1
ZO_ScrollList_AddDataType(scrollList, LOCATION_DATA, "SomeLocationRow", 23, nil, nil, nil, nil)
local scrollData = ZO_ScrollList_GetDataList(scrollList)
for i = 1, GetNumMaps() do
local mapName, mapType, mapContentType = GetMapInfo(i)
scrollData[#scrollData + 1] = ZO_ScrollList_CreateDataEntry(LOCATION_DATA, { locationName = zo_strformat("<<1>>", mapName), index = i })
end
ZO_ScrollList_Commit(scrollList)
xml part
Lua Code:
<Control name="SomeLocationRow" virtual="true">
<Dimensions x="200" y="23"/>
<Controls>
<Label name="$(parent)Location" inherits="ZO_SelectableLabel" font="ZoFontHeader">
<Anchor point="TOPLEFT"/>
</Label>
</Controls>
</Control>
which results in this
I don't see any map locations and the slider is way too small. I can manually fiddle with the height, but still it misses the content