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