Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-06-10, 09:31 AM   #1
Segore
A Murloc Raider
Join Date: Aug 2008
Posts: 5
"Custom-Backdrops"? - Need Help

Hello,

atm I'am creating a little addon that should show a Frame on READY_CHECK.
That part of my little addon is working as expected, but there is one part which is not working - here is the code of my Frame:

Code:
BFC_Frame = CreateFrame("Frame", "BFC_Frame", UIParent)
BFC_Frame:EnableMouse(true)
BFC_Frame:SetMovable(true)
BFC_Frame:SetUserPlaced(true)
BFC_Frame:RegisterForDrag("LeftButton")
BFC_Frame:SetScript("OnDragStart", function() this:StartMoving() end)
BFC_Frame:SetScript("OnDragStop", function() this:StopMovingOrSizing() end)
BFC_Frame:SetWidth(112)
BFC_Frame:SetHeight(56)
BFC_Frame:SetPoint("CENTER", 0, 0)

BFC_Frame:SetBackdrop({
  bgFile="Interface\\DialogFrame\\UI-DialogBox-Background", 
  edgeFile="Interface\\DialogFrame\\UI-DialogBox-Border", 
  tile=1, tileSize=10, edgeSize=10, 
  insets={left=3, right=3, top=3, bottom=3}
});


BFC_Frame:Hide()

-- Frames für Buff/Flask-Icon
BFC_B_Frame = CreateFrame("Frame", "BFC_Frame", BFC_Frame)
BFC_B_Frame:SetWidth(56)
BFC_B_Frame:SetHeight(56)
BFC_B_Frame:SetPoint("LEFT", 0, 0)
BFC_B_Frame:Hide()
BFC_B_Frame:SetBackdrop({
bgFile="Interface\\AddOns\\BuffoodFlaskCheck\\UI-BuffoodFlaskCheck-Backdrop-Food",
edgeFile="Interface\\DialogFrame\\UI-DialogBox-Border",
tile=0, tileSize=10, edgeSize=10,
insets={left=3, right=3, top=3, bottom=3}
});
It seems that the Frames are created correctly, but the backdrop of the BFC_B_Frame Frame doesn't show the bgFile as you can see here:
http://img341.imageshack.us/img341/5...odflaskche.png

The file is saved in the tga-Format.

Any ideas why it is not working?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » "Custom-Backdrops"? - Need Help


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