Originally Posted by Lum1on
Yes, I do know what XML and LUA does. Sorry for not being precise with this issue.
So, like I said i can track my on-going buffs with d(). I can also get the buff name and icon from EVENT_LOOT_RECEIVED and GetItemLink().
The questions is, how I'm able to multiply one single XML control with 'for' loop using LUA? So I could get a sort of a drop-down list to show the buffs.
|
I think you are talking about ScrollList and/or control-pooling with "virtual" XML control templates.
A single XML control is marked as virtual (=template) and when multiple instances can be created on demand.
Not the easiest topic to start with.
A ScrollList control uses this control pooling to create as much controls as visible rows only.
Or directly multipling a single virtual XML control:
CreateControlFromVirtual(name, parent, templateName, optionalNameSuffix)
CreateControlRangeFromVirtual(name, parent, templateName, rangeMinSuffix, rangeMaxSuffix)