WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   clickable picture refuses to show up (https://www.wowinterface.com/forums/showthread.php?t=59350)

Uitat 11-16-22 01:00 PM

clickable picture refuses to show up
 
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:
  1. local frame = CreateFrame("Button", "Options1", Config_BaseFrame, "UIPanelButtonTemplate")
  2.     frame:SetSize(171,171)
  3.     frame:SetNormalTexture("Interface\\AddOns\\_Deranjata\\media\\dk.tga")
  4.     frame:SetPushedTexture("Interface\\AddOns\\_Deranjata\\media\\dk.tga")
  5.     frame:SetHighlightTexture("Interface\\AddOns\\_Deranjata\\media\\dk.tga")
  6.     --frame:SetText("Deathknight")
  7.     frame:ClearAllPoints()
  8.     frame:SetPoint("CENTER", -300, 30)
  9.     Options1:SetScript("OnClick", function() DEATHKNIGHT_OnClick() end)

SDPhantom 11-16-22 02:38 PM

Is the size of the image file itself a power of 2? I don't think they've updated the image loader to support arbitrary sizes.

Uitat 11-16-22 02:43 PM

Quote:

Originally Posted by SDPhantom (Post 341607)
Is the size of the image file itself a power of 2? I don't think they've updated the image loader to support arbitrary sizes.

omg ..... such a newb mistake..... ugg thats the first thing i should have checked. thanks SDPhantom.... see this is why i cam here, usually miss some stupid little thing


All times are GMT -6. The time now is 07:33 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI