Quantcast
Help with custom background image - WoWInterface
Thread Tools Display Modes
10-04-20, 11:18 AM   #1
ashpoker
A Defias Bandit
Join Date: Sep 2020
Posts: 2
Angry Help with custom background image

I have been fooling with trying to add a custom background image for my frame with no success.

I have created a png image and used the blp converter and still have yet to get something other than a green box to show on my screen when i change the file location and name from the default frame background. Any help would be great . thanks.

Code:
    local AshStats = CreateFrame("frame", "AshStatsFrame")
    AshStats:SetBackdrop({ bgFile="Interface\\DialogFrame\\UI-DialogBox-Background",  -- I change this to the addon folder and file name

        edgeFile="Interface\\DialogFrame\\UI-DialogBox-Border",
        tile=1, tileSize=32, edgeSize=32,
        insets={left=11, right=12, top=12, bottom=11}
    })
     
    AshStats:SetWidth(170)
    AshStats:SetHeight(400)
    AshStats:SetPoint("CENTER",UIParent)
    AshStats:EnableMouse(true)
    AshStats:SetMovable(true)
    AshStats:RegisterForDrag("LeftButton")
    AshStats:SetScript("OnDragStart", function(self) self:StartMoving() end)
    AshStats:SetScript("OnDragStart", function(self) self:StartMoving() end)
    AshStats:SetScript("OnDragStop", function(self) self:StopMovingOrSizing() end)
    AshStats:SetFrameStrata("FULLSCREEN_DIALOG")
  Reply With Quote
10-04-20, 11:46 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 790
Take a look here https://www.wowinterface.com/forums/...ad.php?t=46671
There are a few traps. The file might not be found ? (Restart of WoW required, Reload is not enough)
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Help with custom background image

Thread Tools
Display Modes

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