Originally Posted by Nibelheim
Need to change last line to:
LUA Code:
AftermathhUIFrameSub1:SetScript("OnClick", function() CheckBoxes(1) end)
|
Originally Posted by kaels
Sorry!
In your Checkbox function, you need to add at the end:
And then this line:
lua Code:
AftermathUIFrame.checkboxes = checkboxes
should have been
lua Code:
AftermathUIFrame.checkboxes = boxes
You should definitely listen to Phanx over me with respect to recycling...at the very least though I think you want to keep a table to hold on to the frames you're using. You could change ReleaseCheckboxes() to simply:
lua Code:
local function ReleaseCheckboxes() local boxes = AftermathUIFrame.checkboxes for i = 1, #boxes do boxes[i]:Hide() boxes[i] = nil end end
|
Thanks both =)
yaya! it works, doh... the font string is still there ><