Spiderkeg |
08-17-15 02:33 PM |
HybridScrollFrame_CreateButtons / buttonTemplate Question
First off, thanks in advance.
I have created a working hybrid scroll frame using the HybridScrollFrame API. However, my question revolves around the HybridScrollFrame_CreateButtons function:
Code:
function HybridScrollFrame_CreateButtons (self, buttonTemplate, initialOffsetX, initialOffsetY, initialPoint, initialRelative, offsetX, offsetY, point, relativePoint)
...
button = CreateFrame("BUTTON", buttonName .. 1, scrollChild, buttonTemplate);
The function requires a buttonTemplate param to be passed in, and at the moment I have a simple XML file with a few lines of code for a button, that's it.
I would prefer to keep everything as Lua, so is there any way for me to create a template using Lua that I can pass into this function and that will actually work?
I realize that, as a fallback solution, I could duplicate this function and alter it to fit my simple needs, but before doing so I figure I'd ask here.
Any thoughts?
|