WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Help with custom background image (https://www.wowinterface.com/forums/showthread.php?t=58251)

ashpoker 10-04-20 11:18 AM

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")


Rilgamon 10-04-20 11:46 AM

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)


All times are GMT -6. The time now is 03:08 PM.

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