Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-17-15, 02:33 PM   #1
Spiderkeg
A Deviate Faerie Dragon
Join Date: Sep 2006
Posts: 18
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?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » HybridScrollFrame_CreateButtons / buttonTemplate Question


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off