View Single Post
08-05-10, 07:05 AM   #1
Miiru
A Flamescale Wyrmkin
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 138
Lua Background Issue

Hello. I'm having a problem with a custom addon i've created recently. This is the lua code:
Code:
i = 1
while i <= 36 do
bla = "ContainerFrame1Item"..i
--print(i)
--print(bla)
MeinAddonFrame = CreateFrame("Frame","bla", ContainerFrame1Item1)
MeinAddonFrame:EnableMouse(true)

MeinAddonFrame:SetMovable(false)
MeinAddonFrame:SetWidth(30)
MeinAddonFrame:SetHeight(30)
MeinAddonFrame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
edgeSize= 16, insets = { left = 0, right = 0, top = 0, bottom = 0 }})
MeinAddonFrame:SetBackdropColor(0.0,0.0,0.0,0.9)
MeinAddonFrame:ClearAllPoints()
MeinAddonFrame:SetPoint("CENTER", "ContainerFrame1Item"..i)
i=i+1
end
Everything works out fine so far. Now i want to exchange the Interface/Tooltips/UI-Tooltip-Border texture.
So i create a .tga file with dimensions which are a power of 2 (32x32) and change the path in the lua. Next thing i notice is that it doesnt show any texture anymore, but it doesnt return an error either (--print(i) and --print(bla) returns also show that everything works fine it just doesnt seem to load the file).

Maybe somebody can help me.
  Reply With Quote