From 7632f92dd1b697be3a5dbe08d1b185488561740b Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 10 Jun 2019 13:00:07 +0200 Subject: [PATCH] core: use new media mechanism for all textures --- api/ui-widgets.lua | 12 ++++++------ api/unitframes.lua | 24 ++++++++++++------------ img/{debuffs => }/Curse.tga | Bin img/{debuffs => }/Disease.tga | Bin img/{debuffs => }/Magic.tga | Bin img/{debuffs => }/Poison.tga | Bin modules/actionbar.lua | 2 +- modules/addons.lua | 2 +- modules/bags.lua | 20 ++++++++++---------- modules/buffwatch.lua | 2 +- modules/chatcopy.lua | 2 +- modules/firstrun.lua | 2 +- modules/gui.lua | 2 +- modules/infight.lua | 2 +- modules/loot.lua | 4 ++-- modules/minimap.lua | 8 ++++---- modules/mirrortimers.lua | 2 +- modules/nameplates.lua | 6 +++--- modules/panel.lua | 4 ++-- modules/roll.lua | 2 +- modules/share.lua | 2 +- modules/thirdparty.lua | 16 ++++++++-------- modules/tooltip.lua | 2 +- modules/unlock.lua | 8 ++++---- modules/whisperproxy.lua | 2 +- modules/xpbar.lua | 6 +++--- pfUI.lua | 2 +- skins/blizzard/character.lua | 10 +++++----- skins/blizzard/friends.lua | 4 ++-- skins/blizzard/inspect.lua | 2 +- skins/blizzard/itemtext.lua | 2 +- skins/blizzard/professions.lua | 2 +- skins/blizzard/readycheck.lua | 2 +- 33 files changed, 78 insertions(+), 78 deletions(-) rename img/{debuffs => }/Curse.tga (100%) rename img/{debuffs => }/Disease.tga (100%) rename img/{debuffs => }/Magic.tga (100%) rename img/{debuffs => }/Poison.tga (100%) diff --git a/api/ui-widgets.lua b/api/ui-widgets.lua index 100528ca..ddabd506 100644 --- a/api/ui-widgets.lua +++ b/api/ui-widgets.lua @@ -121,7 +121,7 @@ function pfUI.api.CreateScrollFrame(name, parent) f.slider:SetOrientation('VERTICAL') f.slider:SetPoint("TOPLEFT", f, "TOPRIGHT", -7, 0) f.slider:SetPoint("BOTTOMRIGHT", 0, 0) - f.slider:SetThumbTexture("Interface\\AddOns\\pfUI\\img\\col") + f.slider:SetThumbTexture(pfUI.media["img:col"]) f.slider.thumb = f.slider:GetThumbTexture() f.slider.thumb:SetHeight(50) f.slider.thumb:SetTexture(.3,1,.8,.5) @@ -383,7 +383,7 @@ function pfUI.api.SkinCloseButton(button, parentFrame, offsetX, offsetY) end button.texture = button:CreateTexture("pfQuestionDialogCloseTex") - button.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + button.texture:SetTexture(pfUI.media["img:close"]) button.texture:ClearAllPoints() button.texture:SetAllPoints(button) button.texture:SetVertexColor(1,.25,.25,1) @@ -410,7 +410,7 @@ function pfUI.api.SkinArrowButton(button, dir, size) SetAllPointsOffset(button.icon, button, 3) end - button.icon:SetTexture("Interface\\AddOns\\pfUI\\img\\" .. dir) + button.icon:SetTexture(pfUI.media["img:"..dir]) if not button.pfScripted then local enable = button.Enable @@ -535,7 +535,7 @@ function pfUI.api.SkinDropDown(frame, cr, cg, cb) if not button.icon then button.icon = button:CreateTexture(nil, "OVERLAY") - button.icon:SetTexture("Interface\\AddOns\\pfUI\\img\\down") + button.icon:SetTexture(pfUI.media["img:down"]) button.icon:SetVertexColor(1,.9,.1) button.icon:SetAlpha(.8) SetAllPointsOffset(button.icon, button.backdrop, 5) @@ -738,7 +738,7 @@ function pfUI.api.CreateQuestionDialog(text, yes, no, editbox, onclose) question.close:SetHeight(10) question.close:SetWidth(10) question.close.texture = question.close:CreateTexture("pfQuestionDialogCloseTex") - question.close.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + question.close.texture:SetTexture(pfUI.media["img:close"]) question.close.texture:ClearAllPoints() question.close.texture:SetAllPoints(question.close) question.close.texture:SetVertexColor(1,.25,.25,1) @@ -811,7 +811,7 @@ function pfUI.api.CreateInfoBox(text, time, parent, height) infobox.text:SetFontObject(GameFontWhite) infobox.timeout = CreateFrame("StatusBar", nil, infobox) - infobox.timeout:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + infobox.timeout:SetStatusBarTexture(pfUI.media["img:bar"]) infobox.timeout:SetStatusBarColor(.3,1,.8,1) infobox:ClearAllPoints() diff --git a/api/unitframes.lua b/api/unitframes.lua index 12dcc5bf..7ff0ceef 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -25,12 +25,12 @@ for i=1,40 do pfValidUnits["raid" .. i .. "target"] = true end for i=1,40 do pfValidUnits["raidpet" .. i .. "target"] = true end local glow = { - edgeFile = "Interface\\AddOns\\pfUI\\img\\glow", edgeSize = 8, + edgeFile = pfUI.media["img:glow"], edgeSize = 8, insets = {left = 0, right = 0, top = 0, bottom = 0}, } local glow2 = { - edgeFile = "Interface\\AddOns\\pfUI\\img\\glow2", edgeSize = 8, + edgeFile = pfUI.media["img:glow2"], edgeSize = 8, insets = {left = 0, right = 0, top = 0, bottom = 0}, } @@ -390,7 +390,7 @@ function pfUI.uf:UpdateConfig() f.incHeal:SetFrameLevel(2) f.incHeal:SetHeight(f.config.height) f.incHeal:SetWidth(f.config.width) - f.incHeal:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + f.incHeal:SetStatusBarTexture(pfUI.media["img:bar"]) f.incHeal:SetStatusBarColor(0, 1, 0, 0.5) f.incHeal:Hide() @@ -412,7 +412,7 @@ function pfUI.uf:UpdateConfig() f.ressIcon:SetWidth(32) f.ressIcon:SetHeight(32) f.ressIcon:SetPoint("CENTER", f, "CENTER", 0, 4) - f.ressIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\ress") + f.ressIcon.texture:SetTexture(pfUI.media["img:ress"]) f.ressIcon.texture:SetAllPoints(f.ressIcon) f.ressIcon:Hide() @@ -433,7 +433,7 @@ function pfUI.uf:UpdateConfig() f.pvpIcon:SetWidth(16) f.pvpIcon:SetHeight(16) f.pvpIcon:SetPoint("CENTER", 0, 0) - f.pvpIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\pvp") + f.pvpIcon.texture:SetTexture(pfUI.media["img:pvp"]) f.pvpIcon.texture:SetAllPoints(f.pvpIcon) f.pvpIcon.texture:SetVertexColor(1,1,1,.5) f.pvpIcon:Hide() @@ -441,7 +441,7 @@ function pfUI.uf:UpdateConfig() f.raidIcon:SetWidth(f.config.raidiconsize) f.raidIcon:SetHeight(f.config.raidiconsize) f.raidIcon:SetPoint("TOP", f, "TOP", 0, 6) - f.raidIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\raidicons") + f.raidIcon.texture:SetTexture(pfUI.media["img:raidicons"]) f.raidIcon.texture:SetAllPoints(f.raidIcon) f.raidIcon:Hide() @@ -456,7 +456,7 @@ function pfUI.uf:UpdateConfig() f.happinessIcon:SetWidth(12) f.happinessIcon:SetHeight(12) f.happinessIcon:SetPoint("CENTER", f, "TOPLEFT", default_border, -default_border) - f.happinessIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\neutral") + f.happinessIcon.texture:SetTexture(pfUI.media["img:neutral"]) f.happinessIcon.texture:SetAllPoints(f.happinessIcon) f.happinessIcon.texture:SetVertexColor(1, 1, 0, 1) f.happinessIcon:Hide() @@ -1049,19 +1049,19 @@ function pfUI.uf:RefreshIndicators(unit) if UnitIsVisible("pet") then local happiness = GetPetHappiness() if happiness == 1 then - unit.happinessIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\sad") + unit.happinessIcon.texture:SetTexture(pfUI.media["img:sad"]) unit.happinessIcon.texture:SetVertexColor(1, 0, 0, 1) elseif happiness == 2 then - unit.happinessIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\neutral") + unit.happinessIcon.texture:SetTexture(pfUI.media["img:neutral"]) unit.happinessIcon.texture:SetVertexColor(1, 1, 0, 1) else - unit.happinessIcon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\happy") + unit.happinessIcon.texture:SetTexture(pfUI.media["img:happy"]) unit.happinessIcon.texture:SetVertexColor(0, 1, 0, 1) end unit.happinessIcon:Show() else unit.happinessIcon:Hide() - end + end end end @@ -1335,7 +1335,7 @@ function pfUI.uf:RefreshUnit(unit, component) if indicator.size ~= indicator[debuff].size or disptype ~= indicator[debuff].disp then if disptype == "4" then - indicator[debuff].tex:SetTexture("Interface\\AddOns\\pfUI\\img\\debuffs\\" .. debuff) + indicator[debuff].tex:SetTexture(pfUI.media["img:"..debuff]) indicator[debuff].tex:SetVertexColor(unpack(pfDebuffColors[debuff])) indicator[debuff].tex:Show() indicator[debuff]:ClearAllPoints() diff --git a/img/debuffs/Curse.tga b/img/Curse.tga similarity index 100% rename from img/debuffs/Curse.tga rename to img/Curse.tga diff --git a/img/debuffs/Disease.tga b/img/Disease.tga similarity index 100% rename from img/debuffs/Disease.tga rename to img/Disease.tga diff --git a/img/debuffs/Magic.tga b/img/Magic.tga similarity index 100% rename from img/debuffs/Magic.tga rename to img/Magic.tga diff --git a/img/debuffs/Poison.tga b/img/Poison.tga similarity index 100% rename from img/debuffs/Poison.tga rename to img/Poison.tga diff --git a/modules/actionbar.lua b/modules/actionbar.lua index de1c8bcd..5428f9b0 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -3,7 +3,7 @@ pfUI:RegisterModule("actionbar", 20400, function () local color = RAID_CLASS_COLORS[class] local cr, cg, cb = color.r , color.g, color.b - local backdrop_highlight = { edgeFile = "Interface\\AddOns\\pfUI\\img\\glow", edgeSize = 8 } + local backdrop_highlight = { edgeFile = pfUI.media["img:glow"], edgeSize = 8 } local showgrid = 0 local showgrid_pet = 0 diff --git a/modules/addons.lua b/modules/addons.lua index 81c98b79..da1356dd 100644 --- a/modules/addons.lua +++ b/modules/addons.lua @@ -52,7 +52,7 @@ pfUI:RegisterModule("addons", 20400, function () pfUI.addons.close:SetHeight(15) pfUI.addons.close:SetWidth(15) pfUI.addons.close.texture = pfUI.addons.close:CreateTexture("pfBagClose") - pfUI.addons.close.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + pfUI.addons.close.texture:SetTexture(pfUI.media["img:close"]) pfUI.addons.close.texture:ClearAllPoints() pfUI.addons.close.texture:SetPoint("TOPLEFT", pfUI.addons.close, "TOPLEFT", 4, -4) pfUI.addons.close.texture:SetPoint("BOTTOMRIGHT", pfUI.addons.close, "BOTTOMRIGHT", -4, 4) diff --git a/modules/bags.lua b/modules/bags.lua index dc82acc9..47006935 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -327,9 +327,9 @@ pfUI:RegisterModule("bags", 20400, function () end if pfUI.bag.right and pfUI.bag.right.open then if openable.bag and openable.slot then - pfUI.bag.right.open.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\full") + pfUI.bag.right.open.texture:SetTexture(pfUI.media["img:full"]) else - pfUI.bag.right.open.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\empty") + pfUI.bag.right.open.texture:SetTexture(pfUI.media["img:empty"]) end end end @@ -594,7 +594,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.close:SetHeight(12) frame.close:SetWidth(12) frame.close.texture = frame.close:CreateTexture("pfBagClose") - frame.close.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + frame.close.texture:SetTexture(pfUI.media["img:close"]) frame.close.texture:ClearAllPoints() frame.close.texture:SetPoint("TOPLEFT", frame.close, "TOPLEFT", 2, -2) frame.close.texture:SetPoint("BOTTOMRIGHT", frame.close, "BOTTOMRIGHT", -2, 2) @@ -622,7 +622,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.bags:SetTextColor(1,1,.25,1) frame.bags:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.bags.texture = frame.bags:CreateTexture("pfBagArrowUp") - frame.bags.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\up") + frame.bags.texture:SetTexture(pfUI.media["img:up"]) frame.bags.texture:ClearAllPoints() frame.bags.texture:SetPoint("TOPLEFT", frame.bags, "TOPLEFT", 3, -1) frame.bags.texture:SetPoint("BOTTOMRIGHT", frame.bags, "BOTTOMRIGHT", -3, 1) @@ -663,7 +663,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.open:SetTextColor(1,1,.25,1) frame.open:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.open.texture = frame.open:CreateTexture("pfBagOpenContainer") - frame.open.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\empty") + frame.open.texture:SetTexture(pfUI.media["img:empty"]) frame.open.texture:ClearAllPoints() frame.open.texture:SetPoint("TOPLEFT", frame.open, "TOPLEFT", 3, -1) frame.open.texture:SetPoint("BOTTOMRIGHT", frame.open, "BOTTOMRIGHT", -3, 1) @@ -720,7 +720,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.disenchant:SetTextColor(1,1,.25,1) frame.disenchant:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.disenchant.texture = frame.disenchant:CreateTexture("pfBagDisenchant") - frame.disenchant.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\disenchant") + frame.disenchant.texture:SetTexture(pfUI.media["img:disenchant"]) frame.disenchant.texture:ClearAllPoints() frame.disenchant.texture:SetPoint("TOPLEFT", frame.disenchant, "TOPLEFT", 3, -1) frame.disenchant.texture:SetPoint("BOTTOMRIGHT", frame.disenchant, "BOTTOMRIGHT", -3, 1) @@ -764,7 +764,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.picklock:SetTextColor(1,1,.25,1) frame.picklock:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.picklock.texture = frame.picklock:CreateTexture("pfBagPicklock") - frame.picklock.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\picklock") + frame.picklock.texture:SetTexture(pfUI.media["img:picklock"]) frame.picklock.texture:ClearAllPoints() frame.picklock.texture:SetPoint("TOPLEFT", frame.picklock, "TOPLEFT", 3, -1) frame.picklock.texture:SetPoint("BOTTOMRIGHT", frame.picklock, "BOTTOMRIGHT", -3, 1) @@ -808,7 +808,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.keys:SetTextColor(1,1,.25,1) frame.keys:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.keys.texture = frame.keys:CreateTexture("pfBagArrowUp") - frame.keys.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\key") + frame.keys.texture:SetTexture(pfUI.media["img:key"]) frame.keys.texture:ClearAllPoints() frame.keys.texture:SetPoint("TOPLEFT", frame.keys, "TOPLEFT", 3, -1) frame.keys.texture:SetPoint("BOTTOMRIGHT", frame.keys, "BOTTOMRIGHT", -3, 1) @@ -910,7 +910,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.close:SetHeight(12) frame.close:SetWidth(12) frame.close.texture = frame.close:CreateTexture("pfBagClose") - frame.close.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + frame.close.texture:SetTexture(pfUI.media["img:close"]) frame.close.texture:ClearAllPoints() frame.close.texture:SetPoint("TOPLEFT", frame.close, "TOPLEFT", 2, -2) frame.close.texture:SetPoint("BOTTOMRIGHT", frame.close, "BOTTOMRIGHT", -2, 2) @@ -938,7 +938,7 @@ pfUI:RegisterModule("bags", 20400, function () frame.bags:SetTextColor(1,1,.25,1) frame.bags:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.bags.texture = frame.bags:CreateTexture("pfBagArrowUp") - frame.bags.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\up") + frame.bags.texture:SetTexture(pfUI.media["img:up"]) frame.bags.texture:ClearAllPoints() frame.bags.texture:SetPoint("TOPLEFT", frame.bags, "TOPLEFT", 3, -1) frame.bags.texture:SetPoint("BOTTOMRIGHT", frame.bags, "BOTTOMRIGHT", -3, 1) diff --git a/modules/buffwatch.lua b/modules/buffwatch.lua index b761d5f2..e37ba310 100644 --- a/modules/buffwatch.lua +++ b/modules/buffwatch.lua @@ -154,7 +154,7 @@ pfUI:RegisterModule("buffwatch", function () frame.bar = CreateFrame("StatusBar", "pfBuffBar" .. bar, frame) frame.bar:SetPoint("TOPLEFT", frame, "TOPLEFT", height+1, 0) frame.bar:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", 0, 0) - frame.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + frame.bar:SetStatusBarTexture(pfUI.media["img:bar"]) frame.bar:SetStatusBarColor(color.r, color.g, color.b, color.a) frame.text = frame.bar:CreateFontString("Status", "DIALOG", "GameFontNormal") diff --git a/modules/chatcopy.lua b/modules/chatcopy.lua index 5d21ee9f..a06408b4 100644 --- a/modules/chatcopy.lua +++ b/modules/chatcopy.lua @@ -9,7 +9,7 @@ pfUI:RegisterModule("chatcopy", 20400, function () f.slider:SetOrientation('VERTICAL') f.slider:SetPoint("TOPLEFT", f, "TOPRIGHT", -7, 0) f.slider:SetPoint("BOTTOMRIGHT", 0, 0) - f.slider:SetThumbTexture("Interface\\AddOns\\pfUI\\img\\col") + f.slider:SetThumbTexture(pfUI.media["img:col"]) f.slider.thumb = f.slider:GetThumbTexture() f.slider.thumb:SetHeight(50) f.slider.thumb:SetTexture(.3,1,.8,.5) diff --git a/modules/firstrun.lua b/modules/firstrun.lua index 04346d32..88865be2 100644 --- a/modules/firstrun.lua +++ b/modules/firstrun.lua @@ -80,7 +80,7 @@ pfUI:RegisterModule("firstrun", 20400, function () f.progress:SetPoint("BOTTOMLEFT", 100, 10) f.progress:SetPoint("BOTTOMRIGHT", -100, 10) f.progress:SetHeight(12) - f.progress:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + f.progress:SetStatusBarTexture(pfUI.media["img:bar"]) f.progress:SetStatusBarColor(.2,1,.8,1) f.progress:SetMinMaxValues(1,9) f.progress:SetValue(3) diff --git a/modules/gui.lua b/modules/gui.lua index dd751d44..025fc7a7 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -653,7 +653,7 @@ pfUI:RegisterModule("gui", 20400, function () pfUI.gui.close:SetHeight(10) pfUI.gui.close:SetWidth(10) pfUI.gui.close.texture = pfUI.gui.close:CreateTexture("pfQuestionDialogCloseTex") - pfUI.gui.close.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + pfUI.gui.close.texture:SetTexture(pfUI.media["img:close"]) pfUI.gui.close.texture:ClearAllPoints() pfUI.gui.close.texture:SetAllPoints(pfUI.gui.close) pfUI.gui.close.texture:SetVertexColor(1,.25,.25,1) diff --git a/modules/infight.lua b/modules/infight.lua index 48f16abd..7eb6e845 100644 --- a/modules/infight.lua +++ b/modules/infight.lua @@ -8,7 +8,7 @@ pfUI:RegisterModule("infight", 20400, function () pfUI.infight = CreateFrame("Frame", "pfUICombat", UIParent) pfUI.infight.backdrop = { - edgeFile = "Interface\\AddOns\\pfUI\\img\\glow", edgeSize = 8, + edgeFile = pfUI.media["img:glow"], edgeSize = 8, insets = {left = 0, right = 0, top = 0, bottom = 0}, } diff --git a/modules/loot.lua b/modules/loot.lua index c0777423..4cf9a7cc 100644 --- a/modules/loot.lua +++ b/modules/loot.lua @@ -604,14 +604,14 @@ pfUI:RegisterModule("loot", 20400, function () frame.name:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") frame.rarity = frame:CreateTexture(nil, "ARTWORK") - frame.rarity:SetTexture"Interface\\AddOns\\pfUI\\img\\bar" + frame.rarity:SetTexture(pfUI.media["img:bar"]) frame.rarity:SetPoint("LEFT", frame.ficon, "RIGHT", 0, 0) frame.rarity:SetPoint("RIGHT", frame) frame.rarity:SetAlpha(.15) frame.rarity:SetAllPoints(frame) frame.hover = frame:CreateTexture(nil, "ARTWORK") - frame.hover:SetTexture"Interface\\AddOns\\pfUI\\img\\bar" + frame.hover:SetTexture(pfUI.media["img:bar"]) frame.hover:SetPoint("LEFT", frame.ficon, "RIGHT", 0, 0) frame.hover:SetPoint("RIGHT", frame) frame.hover:SetAlpha(.15) diff --git a/modules/minimap.lua b/modules/minimap.lua index 76272a34..137bfb09 100644 --- a/modules/minimap.lua +++ b/modules/minimap.lua @@ -24,7 +24,7 @@ pfUI:RegisterModule("minimap", 20400, function () Minimap:SetParent(pfUI.minimap) Minimap:SetPoint("CENTER", pfUI.minimap, "CENTER", 0.5, -.5) Minimap:SetFrameLevel(1) - Minimap:SetMaskTexture("Interface\\AddOns\\pfUI\\img\\minimap") + Minimap:SetMaskTexture(pfUI.media["img:minimap"]) Minimap:EnableMouseWheel(true) Minimap:SetScript("OnMouseWheel", function() if(arg1 > 0) then Minimap_ZoomIn() else Minimap_ZoomOut() end @@ -69,7 +69,7 @@ pfUI:RegisterModule("minimap", 20400, function () MiniMapMailFrame:ClearAllPoints() MiniMapMailFrame:SetPoint("TOPRIGHT", pfUI.minimap, "TOPRIGHT", 0, 0) MiniMapMailBorder:Hide() - MiniMapMailIcon:SetTexture("Interface\\AddOns\\pfUI\\img\\mail") + MiniMapMailIcon:SetTexture(pfUI.media["img:mail"]) MiniMapMailFrame:SetScript("OnShow", function() if not this.highlight then @@ -78,7 +78,7 @@ pfUI:RegisterModule("minimap", 20400, function () this.highlight:SetFrameLevel(this:GetFrameLevel() + 1) this.highlight.tex = this.highlight:CreateTexture("OVERLAY") - this.highlight.tex:SetTexture("Interface\\AddOns\\pfUI\\img\\mail") + this.highlight.tex:SetTexture(pfUI.media["img:mail"]) this.highlight.tex:SetPoint("TOPLEFT", MiniMapMailIcon, "TOPLEFT", -2, 2) this.highlight.tex:SetPoint("BOTTOMRIGHT", MiniMapMailIcon, "BOTTOMRIGHT", 2, -2) this.highlight.tex:SetVertexColor(1,.5,.5) @@ -194,7 +194,7 @@ pfUI:RegisterModule("minimap", 20400, function () pfUI.minimap.pvpicon:SetParent(pfUI.minimap) pfUI.minimap.pvpicon:SetPoint("BOTTOMRIGHT", pfUI.minimap, "BOTTOMRIGHT", -5, 5) pfUI.minimap.pvpicon.texture = pfUI.minimap.pvpicon:CreateTexture(nil,"DIALOG") - pfUI.minimap.pvpicon.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\pvp") + pfUI.minimap.pvpicon.texture:SetTexture(pfUI.media["img:pvp"]) pfUI.minimap.pvpicon.texture:SetAllPoints(pfUI.minimap.pvpicon) pfUI.minimap.pvpicon:SetScript("OnEvent", function() diff --git a/modules/mirrortimers.lua b/modules/mirrortimers.lua index 1380234c..e938ccf0 100644 --- a/modules/mirrortimers.lua +++ b/modules/mirrortimers.lua @@ -13,7 +13,7 @@ pfUI:RegisterModule("mirrortimers", function () mirrorTimer.scale = 1 mirrorTimer.value = 0 - statusBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + statusBar:SetStatusBarTexture(pfUI.media["img:bar"]) statusBar:SetWidth(222) statusBar:SetHeight(18) statusBar:SetPoint("TOP", 0, 0) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 9e57c457..62a4568e 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -160,7 +160,7 @@ pfUI:RegisterModule("nameplates", 20400, function () if not this.healthbar.glowtarget then this.healthbar.glowtarget = this.nameplate:CreateTexture(nil, "BACKGROUND") - this.healthbar.glowtarget:SetTexture("Interface\\AddOns\\pfUI\\img\\dot") + this.healthbar.glowtarget:SetTexture(pfUI.media["img:dot"]) this.healthbar.glowtarget:ClearAllPoints() this.healthbar.glowtarget:SetPoint("CENTER", this.healthbar, "CENTER", 0, 0) this.healthbar.glowtarget:SetWidth(this.healthbar:GetWidth() + 50) @@ -187,7 +187,7 @@ pfUI:RegisterModule("nameplates", 20400, function () this.raidicon:SetHeight(C.nameplates.raidiconsize) this.raidicon:SetPoint("CENTER", this.healthbar, "CENTER", 0, -5) this.raidicon:SetDrawLayer("OVERLAY") - this.raidicon:SetTexture("Interface\\AddOns\\pfUI\\img\\raidicons") + this.raidicon:SetTexture(pfUI.media["img:raidicons"]) -- add debuff frames if C.nameplates["showdebuffs"] == "1" then @@ -262,7 +262,7 @@ pfUI:RegisterModule("nameplates", 20400, function () this.healthbar.castbar:SetBackdrop({ bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], insets = {left = -1, right = -1, top = -1, bottom = -1} }) this.healthbar.castbar:SetBackdropColor(0,0,0,1) - this.healthbar.castbar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + this.healthbar.castbar:SetStatusBarTexture(pfUI.media["img:bar"]) this.healthbar.castbar:SetStatusBarColor(.9,.8,0,1) plate.healthbar.castbar:SetScript("OnShow", function() diff --git a/modules/panel.lua b/modules/panel.lua index 48c1d0cf..b88eb179 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -549,7 +549,7 @@ pfUI:RegisterModule("panel", 20400, function() pfUI.panel.left.hide:SetPoint("LEFT", 0, 0) CreateBackdrop(pfUI.panel.left.hide, default_border) pfUI.panel.left.hide.texture = pfUI.panel.left.hide:CreateTexture("pfPanelLeftHide") - pfUI.panel.left.hide.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\left") + pfUI.panel.left.hide.texture:SetTexture(pfUI.media["img:left"]) pfUI.panel.left.hide.texture:ClearAllPoints() pfUI.panel.left.hide.texture:SetPoint("TOPLEFT", pfUI.panel.left.hide, "TOPLEFT", 2, -4) pfUI.panel.left.hide.texture:SetPoint("BOTTOMRIGHT", pfUI.panel.left.hide, "BOTTOMRIGHT", -2, 4) @@ -630,7 +630,7 @@ pfUI:RegisterModule("panel", 20400, function() pfUI.panel.right.hide:SetPoint("RIGHT", 0, 0) CreateBackdrop(pfUI.panel.right.hide, default_border) pfUI.panel.right.hide.texture = pfUI.panel.right.hide:CreateTexture("pfPanelRightHide") - pfUI.panel.right.hide.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\right") + pfUI.panel.right.hide.texture:SetTexture(pfUI.media["img:right"]) pfUI.panel.right.hide.texture:ClearAllPoints() pfUI.panel.right.hide.texture:SetPoint("TOPLEFT", pfUI.panel.right.hide, "TOPLEFT", 2, -4) pfUI.panel.right.hide.texture:SetPoint("BOTTOMRIGHT", pfUI.panel.right.hide, "BOTTOMRIGHT", -2, 4) diff --git a/modules/roll.lua b/modules/roll.lua index 48de8385..9a49f671 100644 --- a/modules/roll.lua +++ b/modules/roll.lua @@ -224,7 +224,7 @@ pfUI:RegisterModule("roll", 20400, function () f.time:SetFrameStrata("LOW") f.time.bar = CreateFrame("StatusBar", "pfLootRollFrame" .. id .. "TimeBar", f.time) f.time.bar:SetAllPoints(f.time) - f.time.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + f.time.bar:SetStatusBarTexture(pfUI.media["img:bar"]) f.time.bar:SetMinMaxValues(0, 100) local r, g, b, a = strsplit(",", C.appearance.border.color) f.time.bar:SetStatusBarColor(r, g, b) diff --git a/modules/share.lua b/modules/share.lua index 978606b3..b8c49b05 100644 --- a/modules/share.lua +++ b/modules/share.lua @@ -343,7 +343,7 @@ pfUI:RegisterModule("share", 20400, function () f.closeButton:SetHeight(12) f.closeButton:SetWidth(12) f.closeButton.texture = f.closeButton:CreateTexture("pfQuestionDialogCloseTex") - f.closeButton.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\close") + f.closeButton.texture:SetTexture(pfUI.media["img:close"]) f.closeButton.texture:ClearAllPoints() f.closeButton.texture:SetAllPoints(f.closeButton) f.closeButton.texture:SetVertexColor(1,.25,.25,1) diff --git a/modules/thirdparty.lua b/modules/thirdparty.lua index 3b1b264c..8c239e11 100644 --- a/modules/thirdparty.lua +++ b/modules/thirdparty.lua @@ -190,7 +190,7 @@ pfUI:RegisterModule("thirdparty", function () if KLHTM_Gui.raid then -- skin rows (raid) for i in pairs(KLHTM_Gui.raid.rows) do - KLHTM_Gui.raid.rows[i].bar:SetTexture("Interface\\AddOns\\pfUI\\img\\bar") + KLHTM_Gui.raid.rows[i].bar:SetTexture(pfUI.media["img:bar"]) KLHTM_Gui.raid.rows[i].bar:SetAlpha(.75) if _G["KLHTM_RaidFrameRow" .. i .. "NameText"] then @@ -203,7 +203,7 @@ pfUI:RegisterModule("thirdparty", function () if KLHTM_Gui.self then -- skin rows (self) for i in pairs(KLHTM_Gui.self.rows) do - KLHTM_Gui.self.rows[i].bar:SetTexture("Interface\\AddOns\\pfUI\\img\\bar") + KLHTM_Gui.self.rows[i].bar:SetTexture(pfUI.media["img:bar"]) KLHTM_Gui.self.rows[i].bar:SetAlpha(.75) end end @@ -537,7 +537,7 @@ pfUI:RegisterModule("thirdparty", function () pfUI.bag.right.sort:SetTextColor(1,1,.25,1) pfUI.bag.right.sort:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") pfUI.bag.right.sort.texture = pfUI.bag.right.sort:CreateTexture("pfBagArrowUp") - pfUI.bag.right.sort.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\sort") + pfUI.bag.right.sort.texture:SetTexture(pfUI.media["img:sort"]) pfUI.bag.right.sort.texture:ClearAllPoints() pfUI.bag.right.sort.texture:SetPoint("TOPLEFT", pfUI.bag.right.sort, "TOPLEFT", 2, -2) pfUI.bag.right.sort.texture:SetPoint("BOTTOMRIGHT", pfUI.bag.right.sort, "BOTTOMRIGHT", -2, 2) @@ -581,7 +581,7 @@ pfUI:RegisterModule("thirdparty", function () pfUI.bag.left.sort:SetTextColor(1,1,.25,1) pfUI.bag.left.sort:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") pfUI.bag.left.sort.texture = pfUI.bag.left.sort:CreateTexture("pfBagArrowUp") - pfUI.bag.left.sort.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\sort") + pfUI.bag.left.sort.texture:SetTexture(pfUI.media["img:sort"]) pfUI.bag.left.sort.texture:ClearAllPoints() pfUI.bag.left.sort.texture:SetPoint("TOPLEFT", pfUI.bag.left.sort, "TOPLEFT", 2, -2) pfUI.bag.left.sort.texture:SetPoint("BOTTOMRIGHT", pfUI.bag.left.sort, "BOTTOMRIGHT", -2, 2) @@ -646,7 +646,7 @@ pfUI:RegisterModule("thirdparty", function () pfUI.bag.right.sort:SetTextColor(1,1,.25,1) pfUI.bag.right.sort:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") pfUI.bag.right.sort.texture = pfUI.bag.right.sort:CreateTexture("pfBagArrowUp") - pfUI.bag.right.sort.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\sort") + pfUI.bag.right.sort.texture:SetTexture(pfUI.media["img:sort"]) pfUI.bag.right.sort.texture:ClearAllPoints() pfUI.bag.right.sort.texture:SetPoint("TOPLEFT", pfUI.bag.right.sort, "TOPLEFT", 2, -2) pfUI.bag.right.sort.texture:SetPoint("BOTTOMRIGHT", pfUI.bag.right.sort, "BOTTOMRIGHT", -2, 2) @@ -690,7 +690,7 @@ pfUI:RegisterModule("thirdparty", function () pfUI.bag.left.sort:SetTextColor(1,1,.25,1) pfUI.bag.left.sort:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE") pfUI.bag.left.sort.texture = pfUI.bag.left.sort:CreateTexture("pfBagArrowUp") - pfUI.bag.left.sort.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\sort") + pfUI.bag.left.sort.texture:SetTexture(pfUI.media["img:sort"]) pfUI.bag.left.sort.texture:ClearAllPoints() pfUI.bag.left.sort.texture:SetPoint("TOPLEFT", pfUI.bag.left.sort, "TOPLEFT", 2, -2) pfUI.bag.left.sort.texture:SetPoint("BOTTOMRIGHT", pfUI.bag.left.sort, "BOTTOMRIGHT", -2, 2) @@ -726,7 +726,7 @@ pfUI:RegisterModule("thirdparty", function () FlightMapTimesBorder:Hide() FlightMapTimesFlash:Hide() - FlightMapTimesFrame:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + FlightMapTimesFrame:SetStatusBarTexture(pfUI.media["img:bar"]) FlightMapTimesFrame:SetHeight(18) CreateBackdrop(FlightMapTimesFrame) CreateBackdropShadow(FlightMapTimesFrame) @@ -851,7 +851,7 @@ pfUI:RegisterModule("thirdparty", function () local pr, pg, pb = 0, 0, 0 if p then pr, pg, pb = p.r + .5, p.g +.5, p.b +.5 end DruidManaBar:SetStatusBarColor(pr, pg, pb) - DruidManaBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + DruidManaBar:SetStatusBarTexture(pfUI.media["img:bar"]) local f = pfUI.uf.player DruidManaBar:SetWidth((f.config.pwidth ~= "-1" and f.config.pwidth or f.config.width)) diff --git a/modules/tooltip.lua b/modules/tooltip.lua index 0ebeeacc..bbd49806 100644 --- a/modules/tooltip.lua +++ b/modules/tooltip.lua @@ -152,7 +152,7 @@ pfUI:RegisterModule("tooltip", 20400, function () GameTooltipStatusBar:ClearAllPoints() GameTooltipStatusBar:SetPoint("BOTTOMLEFT", GameTooltip, "TOPLEFT", 0, 0) GameTooltipStatusBar:SetPoint("BOTTOMRIGHT", GameTooltip, "TOPRIGHT", 0, 0) - GameTooltipStatusBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + GameTooltipStatusBar:SetStatusBarTexture(pfUI.media["img:bar"]) CreateBackdrop(GameTooltipStatusBar) CreateBackdropShadow(GameTooltipStatusBar) diff --git a/modules/unlock.lua b/modules/unlock.lua index 62350e89..35fd59ae 100644 --- a/modules/unlock.lua +++ b/modules/unlock.lua @@ -663,7 +663,7 @@ pfUI:RegisterModule("unlock", 20400, function () pfUI.unlock.dock.left:SetWidth(18) pfUI.unlock.dock.left:SetPoint("TOP", -50, -110) pfUI.unlock.dock.left.texture = pfUI.unlock.dock.left:CreateTexture("arrow") - pfUI.unlock.dock.left.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\left") + pfUI.unlock.dock.left.texture:SetTexture(pfUI.media["img:left"]) pfUI.unlock.dock.left.texture:ClearAllPoints() pfUI.unlock.dock.left.texture:SetPoint("TOPLEFT", pfUI.unlock.dock.left, "TOPLEFT", 4, -2) pfUI.unlock.dock.left.texture:SetPoint("BOTTOMRIGHT", pfUI.unlock.dock.left, "BOTTOMRIGHT", -4, 2) @@ -682,7 +682,7 @@ pfUI:RegisterModule("unlock", 20400, function () pfUI.unlock.dock.right:SetWidth(18) pfUI.unlock.dock.right:SetPoint("TOP", -25, -110) pfUI.unlock.dock.right.texture = pfUI.unlock.dock.right:CreateTexture("arrow") - pfUI.unlock.dock.right.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\right") + pfUI.unlock.dock.right.texture:SetTexture(pfUI.media["img:right"]) pfUI.unlock.dock.right.texture:ClearAllPoints() pfUI.unlock.dock.right.texture:SetPoint("TOPLEFT", pfUI.unlock.dock.right, "TOPLEFT", 4, -2) pfUI.unlock.dock.right.texture:SetPoint("BOTTOMRIGHT", pfUI.unlock.dock.right, "BOTTOMRIGHT", -4, 2) @@ -701,7 +701,7 @@ pfUI:RegisterModule("unlock", 20400, function () pfUI.unlock.dock.up:SetWidth(18) pfUI.unlock.dock.up:SetPoint("TOP", 25, -110) pfUI.unlock.dock.up.texture = pfUI.unlock.dock.up:CreateTexture("arrow") - pfUI.unlock.dock.up.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\up") + pfUI.unlock.dock.up.texture:SetTexture(pfUI.media["img:up"]) pfUI.unlock.dock.up.texture:ClearAllPoints() pfUI.unlock.dock.up.texture:SetPoint("TOPLEFT", pfUI.unlock.dock.up, "TOPLEFT", 4, -2) pfUI.unlock.dock.up.texture:SetPoint("BOTTOMRIGHT", pfUI.unlock.dock.up, "BOTTOMRIGHT", -4, 2) @@ -720,7 +720,7 @@ pfUI:RegisterModule("unlock", 20400, function () pfUI.unlock.dock.down:SetWidth(18) pfUI.unlock.dock.down:SetPoint("TOP", 50, -110) pfUI.unlock.dock.down.texture = pfUI.unlock.dock.down:CreateTexture("arrow") - pfUI.unlock.dock.down.texture:SetTexture("Interface\\AddOns\\pfUI\\img\\down") + pfUI.unlock.dock.down.texture:SetTexture(pfUI.media["img:down"]) pfUI.unlock.dock.down.texture:ClearAllPoints() pfUI.unlock.dock.down.texture:SetPoint("TOPLEFT", pfUI.unlock.dock.down, "TOPLEFT", 4, -2) pfUI.unlock.dock.down.texture:SetPoint("BOTTOMRIGHT", pfUI.unlock.dock.down, "BOTTOMRIGHT", -4, 2) diff --git a/modules/whisperproxy.lua b/modules/whisperproxy.lua index 96ec8c9b..c6ffd6aa 100644 --- a/modules/whisperproxy.lua +++ b/modules/whisperproxy.lua @@ -7,7 +7,7 @@ pfUI:RegisterModule("whisperproxy", function () proxy:SetHeight(12) proxy.tex = proxy:CreateTexture(nil, "OVERLAY") proxy.tex:SetAllPoints() - proxy.tex:SetTexture("Interface\\AddOns\\pfUI\\img\\proxy") + proxy.tex:SetTexture(pfUI.media["img:proxy"]) proxy.tex:SetVertexColor(.5,.5,.5,1) proxy:SetAlpha(0.4) diff --git a/modules/xpbar.lua b/modules/xpbar.lua index 1190365d..1a12b46a 100644 --- a/modules/xpbar.lua +++ b/modules/xpbar.lua @@ -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) diff --git a/pfUI.lua b/pfUI.lua index 0cf8e60f..4df1ba50 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -286,7 +286,7 @@ pfUI.backdrop_hover = { } pfUI.backdrop_shadow = { - edgeFile = "Interface\\AddOns\\pfUI\\img\\glow2", edgeSize = 8, + edgeFile = pfUI.media["img:glow2"], edgeSize = 8, insets = {left = 0, right = 0, top = 0, bottom = 0}, } diff --git a/skins/blizzard/character.lua b/skins/blizzard/character.lua index c80c82f8..ccb3c1d1 100644 --- a/skins/blizzard/character.lua +++ b/skins/blizzard/character.lua @@ -151,7 +151,7 @@ pfUI:RegisterSkin("Character", function () StripTextures(PetAttributesFrame) StripTextures(PetPaperDollFrameExpBar) CreateBackdrop(PetPaperDollFrameExpBar, nil, true) - PetPaperDollFrameExpBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + PetPaperDollFrameExpBar:SetStatusBarTexture(pfUI.media["img:bar"]) PetPaperDollFrameExpBar:ClearAllPoints() PetPaperDollFrameExpBar:SetPoint("BOTTOM", PetModelFrame, "BOTTOM", 0, -120) @@ -187,7 +187,7 @@ pfUI:RegisterSkin("Character", function () local bar = _G["ReputationBar" .. i] StripTextures(bar) CreateBackdrop(bar) - bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + bar:SetStatusBarTexture(pfUI.media["img:bar"]) local war = _G["ReputationBar"..i.."AtWarCheck"] StripTextures(war) @@ -245,7 +245,7 @@ pfUI:RegisterSkin("Character", function () frame:ClearAllPoints() frame:SetPoint("TOPLEFT", lastframe, "BOTTOMLEFT", 0, -6) end - frame:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + frame:SetStatusBarTexture(pfUI.media["img:bar"]) frame:SetHeight(12) end @@ -261,7 +261,7 @@ pfUI:RegisterSkin("Character", function () StripTextures(SkillDetailStatusBar) CreateBackdrop(SkillDetailStatusBar) - SkillDetailStatusBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + SkillDetailStatusBar:SetStatusBarTexture(pfUI.media["img:bar"]) SkillDetailStatusBar:SetParent(SkillDetailScrollFrame) StripTextures(SkillDetailStatusBarUnlearnButton) @@ -277,7 +277,7 @@ pfUI:RegisterSkin("Character", function () do -- Honor Tab StripTextures(HonorFrame) - HonorFrameProgressBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + HonorFrameProgressBar:SetStatusBarTexture(pfUI.media["img:bar"]) CreateBackdrop(HonorFrameProgressBar) HonorFrameProgressBar:SetHeight(24) end diff --git a/skins/blizzard/friends.lua b/skins/blizzard/friends.lua index 7b8da7a6..84a0570b 100644 --- a/skins/blizzard/friends.lua +++ b/skins/blizzard/friends.lua @@ -152,7 +152,7 @@ pfUI:RegisterSkin("Friends", function () frame.classicon:SetPoint("CENTER", class, "CENTER", -4, 0) frame.classicon:SetWidth(15) frame.classicon:SetHeight(15) - frame.classicon:SetTexture("Interface\\AddOns\\pfUI\\img\\classicons") + frame.classicon:SetTexture(pfUI.media["img:classicons"]) frame.classicon:Hide() local name = _G["WhoFrameButton"..i.."Name"] @@ -227,7 +227,7 @@ pfUI:RegisterSkin("Friends", function () frame.classicon:SetPoint("CENTER", class, "CENTER", -4, 0) frame.classicon:SetWidth(15) frame.classicon:SetHeight(15) - frame.classicon:SetTexture("Interface\\AddOns\\pfUI\\img\\classicons") + frame.classicon:SetTexture(pfUI.media["img:classicons"]) frame.classicon:Hide() local name = _G["GuildFrameButton"..i.."Name"] diff --git a/skins/blizzard/inspect.lua b/skins/blizzard/inspect.lua index b680255b..e72c031f 100644 --- a/skins/blizzard/inspect.lua +++ b/skins/blizzard/inspect.lua @@ -165,7 +165,7 @@ pfUI:RegisterSkin("Inspect", function () StripTextures(InspectHonorFrame) CreateBackdrop(InspectHonorFrameProgressBar) - InspectHonorFrameProgressBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + InspectHonorFrameProgressBar:SetStatusBarTexture(pfUI.media["img:bar"]) InspectHonorFrameProgressBar:SetHeight(24) end end) diff --git a/skins/blizzard/itemtext.lua b/skins/blizzard/itemtext.lua index 03c4c216..0c98f2c8 100644 --- a/skins/blizzard/itemtext.lua +++ b/skins/blizzard/itemtext.lua @@ -81,7 +81,7 @@ pfUI:RegisterSkin("Books", function () CreateBackdrop(ItemTextStatusBar, nil, true) ItemTextStatusBar:DisableDrawLayer("OVERLAY") - ItemTextStatusBar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + ItemTextStatusBar:SetStatusBarTexture(pfUI.media["img:bar"]) ItemTextStatusBar:SetHeight(12) ItemTextStatusBar:ClearAllPoints() ItemTextStatusBar:SetPoint("BOTTOM", ItemTextScrollFrame, "BOTTOM", 0, 50) diff --git a/skins/blizzard/professions.lua b/skins/blizzard/professions.lua index 2834c55d..e88e1fae 100644 --- a/skins/blizzard/professions.lua +++ b/skins/blizzard/professions.lua @@ -114,7 +114,7 @@ pfUI:RegisterSkin("Profession", function () StripTextures(_G[name.."RankFrameBorder"]) CreateBackdrop(rankbar, nil, true) - rankbar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + rankbar:SetStatusBarTexture(pfUI.media["img:bar"]) rankbar:ClearAllPoints() rankbar:SetPoint("TOPLEFT", backdrop.backdrop, "TOPLEFT", 0, 25) rankbar:SetPoint("BOTTOMRIGHT", backdrop.backdrop, "TOPRIGHT", 0, 6) diff --git a/skins/blizzard/readycheck.lua b/skins/blizzard/readycheck.lua index b82d8bce..a366eb67 100644 --- a/skins/blizzard/readycheck.lua +++ b/skins/blizzard/readycheck.lua @@ -21,7 +21,7 @@ pfUI:RegisterSkin("Readycheck", function () frame:SetHeight(10) frame.bar = CreateFrame("StatusBar", "ReadyCheckFrameStatusBar", ReadyCheckFrame) - frame.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar") + frame.bar:SetStatusBarTexture(pfUI.media["img:bar"]) frame.bar:SetAllPoints(frame) frame.bar.text = frame.bar:CreateFontString("Status", "DIALOG", "GameFontNormal")