Originally Posted by zgrssd
If possible, make a pure XML example (I am not sure you can even use ZoScrollList in XML as it seems not valid as control type when I tried).
|
You create a <Control> with attribute inherits="ZO_ScrollList". ZO_ScrollList is itself a <Control> with attribute virtual="true".
In Garkin's XML above, it's this part (with ZO_ScrollContainer instead):
Originally Posted by Garkin
xml Code:
<GuiXml> <Controls> ... <TopLevelControl name="EventExplorerWindow" mouseEnabled="true" movable="true" clampedToScreen="true" hidden="true"> <Dimensions x="760" y="650" /> <Anchor point="CENTER" /> <Controls> ... <Control name="$(parent)Container" inherits="ZO_ScrollContainer"> <Anchor point="TOPLEFT" offsetY="30" /> <Anchor point="BOTTOMRIGHT" /> </Control> ... </Controls> </TopLevelControl> </GuiXml>
|
ZO_ScrollContainer is a control that contains the slider bar, buttons and the scrolled area, which is named "$(parent)ScrollChild".
"EventExplorerWindow" -> "Container" -> "ScrollChild" is then named EventExplorerWindowContainerScrollChild in _G, look that up in Garkins code, this control is used as the parent of created rows.