View Single Post
03-05-09, 02:52 PM   #12
kneeki
A Flamescale Wyrmkin
 
kneeki's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 134
Mhmm

I've just switched from using my own XML with a copy/paste of blizzard code, to just using Blizzard code. example:
Code:
ClassButton[frame] = CreateFrame("Button", "ClassButton"..frame, UIParent, "SecureActionButtonTemplate, ActionButtonTemplate")
and I have the same results. I also think that the frame levels are the issue for the global cooldown, but for the texture issues, I think my error is here:
Code:
            local t = button:CreateTexture(nil,"BACKGROUND")
                t:SetTexture(GetSpellTexture(CurrentClassButtonsSpells[frameToBuild][i]))
                t:SetAllPoints(button)
                button.texture = t
I've sense tried changing all that to just:
Code:
button:SetNormalTexture(GetSpellTexture(CurrentClassButtonsSpells[frameToBuild][i]))
But then nothing at all is placed in the button, and I'm not given any error message to boot.

<-- frustrated.

[edit] here is a screenshot
  Reply With Quote