Thread Tools Display Modes
11-16-22, 01:00 PM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
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)
__________________
  Reply With Quote
11-16-22, 02:38 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
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.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote
11-16-22, 02:43 PM   #3
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
Originally Posted by SDPhantom View Post
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
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » clickable picture refuses to show up


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