mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23:20:00 +00:00
core: use new media mechanism for all textures
This commit is contained in:
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user