core: use new media mechanism for all textures

This commit is contained in:
shagu
2019-06-10 13:35:48 +02:00
parent f3ced08b2d
commit 7632f92dd1
33 changed files with 78 additions and 78 deletions
+3 -3
View File
@@ -113,7 +113,7 @@ pfUI:RegisterModule("xpbar", 20400, function ()
end)
pfUI.xp.bar = CreateFrame("StatusBar", nil, pfUI.xp)
pfUI.xp.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
pfUI.xp.bar:SetStatusBarTexture(pfUI.media["img:bar"])
pfUI.xp.bar:ClearAllPoints()
pfUI.xp.bar:SetAllPoints(pfUI.xp)
pfUI.xp.bar:SetFrameStrata("LOW")
@@ -123,7 +123,7 @@ pfUI:RegisterModule("xpbar", 20400, function ()
pfUI.xp.bar:SetValue(59)
pfUI.xp.restedbar = CreateFrame("StatusBar", nil, pfUI.xp)
pfUI.xp.restedbar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
pfUI.xp.restedbar:SetStatusBarTexture(pfUI.media["img:bar"])
pfUI.xp.restedbar:ClearAllPoints()
pfUI.xp.restedbar:SetAllPoints(pfUI.xp)
pfUI.xp.restedbar:SetFrameStrata("MEDIUM")
@@ -147,7 +147,7 @@ pfUI:RegisterModule("xpbar", 20400, function ()
UpdateMovable(pfUI.rep)
pfUI.rep.bar = CreateFrame("StatusBar", nil, pfUI.rep)
pfUI.rep.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
pfUI.rep.bar:SetStatusBarTexture(pfUI.media["img:bar"])
pfUI.rep.bar:ClearAllPoints()
pfUI.rep.bar:SetAllPoints(pfUI.rep)
pfUI.rep.bar:SetMinMaxValues(0, 100)