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
+6 -6
View File
@@ -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()
+12 -12
View File
@@ -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()

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)
+10 -10
View File
@@ -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)
+1 -1
View File
@@ -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")
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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},
}
+2 -2
View File
@@ -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)
+4 -4
View File
@@ -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()
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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()
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+8 -8
View File
@@ -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))
+1 -1
View File
@@ -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)
+4 -4
View File
@@ -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)
+1 -1
View File
@@ -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)
+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)
+1 -1
View File
@@ -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},
}
+5 -5
View File
@@ -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
+2 -2
View File
@@ -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"]
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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")