I currently have a bunch of boxes that look similar to
<Texture name="uiBox01">
*Other content*
</Texture>
This continues for 18 boxes (uiBox18). In Lua I am capable of referencing the boss and changing its color via
uiBox01:SetVertexColor(r,g,b)
The problem is I may or may not need more boxes for an operation. The given operation could utilize 2 boxes on its first pass and maybe 8 on the next. As such it needs to be dynamic instead of static.
Ultimately I would like to use an array with Lua such that
uiBox[1] = uiBox01 --something similar to this
so that I can specify the next index more efficiently. Any help would be much appreciated!
EDIT: The XML used is WoW UI XML it's very similar to basic XML.