replacing a button with a clickable picture
but the stupid picture refuses to show anything but a green block
ive tried both png and tga format, and the picture is in the right place and exactly at 171*171 pixles
anyone got any ideas what is wrong here
and i know i have that little settext commented out "intended"
Lua Code:
local frame = CreateFrame("Button", "Options1", Config_BaseFrame, "UIPanelButtonTemplate")
frame:SetSize(171,171)
frame:SetNormalTexture("Interface\\AddOns\\_Deranjata\\media\\dk.tga")
frame:SetPushedTexture("Interface\\AddOns\\_Deranjata\\media\\dk.tga")
frame:SetHighlightTexture("Interface\\AddOns\\_Deranjata\\media\\dk.tga")
--frame:SetText("Deathknight")
frame:ClearAllPoints()
frame:SetPoint("CENTER", -300, 30)
Options1:SetScript("OnClick", function() DEATHKNIGHT_OnClick() end)