Commit 4cf7982b authored by Azilroka's avatar Azilroka
Browse files

Artifact / PvP / WorldMap

parent 27e23e51
...@@ -1077,7 +1077,7 @@ function AS:SkinStatusBarWidget(widgetFrame) ...@@ -1077,7 +1077,7 @@ function AS:SkinStatusBarWidget(widgetFrame)
if bar.BGRight then bar.BGRight:Hide() end if bar.BGRight then bar.BGRight:Hide() end
if bar.BGCenter then bar.BGCenter:Hide() end if bar.BGCenter then bar.BGCenter:Hide() end
if not bar.backdrop then if not bar.Backdrop then
AS:CreateBackdrop(bar) AS:CreateBackdrop(bar)
end end
......
...@@ -27,7 +27,7 @@ function AS:Blizzard_ArtifactUI(event, addon) ...@@ -27,7 +27,7 @@ function AS:Blizzard_ArtifactUI(event, addon)
child.HighlightTexture.SetAlpha = AS.Noop child.HighlightTexture.SetAlpha = AS.Noop
if child.Selected:IsShown() then if child.Selected:IsShown() then
child.backdrop:SetBackdropBorderColor(1,1,1) child.Backdrop:SetBackdropBorderColor(1, 1, 1)
end end
child.Selected:SetAlpha(0) child.Selected:SetAlpha(0)
...@@ -35,9 +35,9 @@ function AS:Blizzard_ArtifactUI(event, addon) ...@@ -35,9 +35,9 @@ function AS:Blizzard_ArtifactUI(event, addon)
hooksecurefunc(child.Selected, "SetShown", function(_, isActive) hooksecurefunc(child.Selected, "SetShown", function(_, isActive)
if isActive then if isActive then
child.backdrop:SetBackdropBorderColor(1,1,1) child.Backdrop:SetBackdropBorderColor(1, 1, 1)
else else
child.backdrop:SetBackdropBorderColor(unpack(E.media.bordercolor)) child.Backdrop:SetBackdropBorderColor(unpack(AS.BorderColor))
end end
end) end)
end end
......
...@@ -112,9 +112,9 @@ function AS:Blizzard_LootFrames() ...@@ -112,9 +112,9 @@ function AS:Blizzard_LootFrames()
-- create a backdrop around the icon -- create a backdrop around the icon
AS:CreateBackdrop(frame, 'Default') AS:CreateBackdrop(frame, 'Default')
frame.backdrop:SetPoint("TOPLEFT", frame.Icon, -2, 2) frame.Backdrop:SetPoint("TOPLEFT", frame.Icon, -2, 2)
frame.backdrop:SetPoint("BOTTOMRIGHT", frame.Icon, 2, -2) frame.Backdrop:SetPoint("BOTTOMRIGHT", frame.Icon, 2, -2)
frame.backdrop:SetBackdropColor(0,0,0,0) frame.Backdrop:SetBackdropColor(0,0,0,0)
frame.isSkinned = true frame.isSkinned = true
end end
end end
...@@ -136,8 +136,8 @@ function AS:Blizzard_LootFrames() ...@@ -136,8 +136,8 @@ function AS:Blizzard_LootFrames()
i:SetTexture(icon) i:SetTexture(icon)
AS:SkinTexture(i) AS:SkinTexture(i)
AS:CreateBackdrop(b) AS:CreateBackdrop(b)
b.backdrop:SetOutside(i) b.Backdrop:SetOutside(i)
b.backdrop:SetBackdropBorderColor(c.r, c.g, c.b) b.Backdrop:SetBackdropBorderColor(c.r, c.g, c.b)
end end
for i=1, MasterLooterFrame:GetNumChildren() do for i=1, MasterLooterFrame:GetNumChildren() do
...@@ -159,7 +159,7 @@ function AS:Blizzard_LootFrames() ...@@ -159,7 +159,7 @@ function AS:Blizzard_LootFrames()
-- bonus -- bonus
AS:StripTextures(BonusRollFrame) AS:StripTextures(BonusRollFrame)
AS:CreateBackdrop(BonusRollFrame) AS:CreateBackdrop(BonusRollFrame)
BonusRollFrame.backdrop:SetFrameLevel(0) BonusRollFrame.Backdrop:SetFrameLevel(0)
AS:SkinTexture(BonusRollFrame.PromptFrame.Icon) AS:SkinTexture(BonusRollFrame.PromptFrame.Icon)
BonusRollFrame.PromptFrame.IconBackdrop = CreateFrame("Frame", nil, BonusRollFrame.PromptFrame) BonusRollFrame.PromptFrame.IconBackdrop = CreateFrame("Frame", nil, BonusRollFrame.PromptFrame)
BonusRollFrame.PromptFrame.IconBackdrop:SetFrameLevel(BonusRollFrame.PromptFrame.IconBackdrop:GetFrameLevel() - 1) BonusRollFrame.PromptFrame.IconBackdrop:SetFrameLevel(BonusRollFrame.PromptFrame.IconBackdrop:GetFrameLevel() - 1)
......
...@@ -214,8 +214,8 @@ function AS:Blizzard_BattlefieldMap(event, addon) ...@@ -214,8 +214,8 @@ function AS:Blizzard_BattlefieldMap(event, addon)
end) end)
local function setBackdropAlpha() local function setBackdropAlpha()
if BattlefieldMapFrame.backdrop then if BattlefieldMapFrame.Backdrop then
BattlefieldMapFrame.backdrop:SetBackdropColor(0, 0, 0, GetOpacity()) BattlefieldMapFrame.Backdrop:SetBackdropColor(0, 0, 0, GetOpacity())
end end
end end
...@@ -266,7 +266,7 @@ function AS:Blizzard_WorldStateScore() ...@@ -266,7 +266,7 @@ function AS:Blizzard_WorldStateScore()
if XPBar.Bar and not XPBar.Bar.Backdrop then if XPBar.Bar and not XPBar.Bar.Backdrop then
AS:CreateBackdrop(XPBar.Bar) AS:CreateBackdrop(XPBar.Bar)
if XPBar.Bar.Background then if XPBar.Bar.Background then
XPBar.Bar.Background:SetInside(XPBar.Bar.backdrop) XPBar.Bar.Background:SetInside(XPBar.Bar.Backdrop)
end end
if XPBar.Bar.Spark then if XPBar.Bar.Spark then
XPBar.Bar.Spark:SetAlpha(0) XPBar.Bar.Spark:SetAlpha(0)
...@@ -280,9 +280,7 @@ function AS:Blizzard_WorldStateScore() ...@@ -280,9 +280,7 @@ function AS:Blizzard_WorldStateScore()
if XPBar.PrestigeReward and XPBar.PrestigeReward.Accept then if XPBar.PrestigeReward and XPBar.PrestigeReward.Accept then
XPBar.PrestigeReward.Accept:ClearAllPoints() XPBar.PrestigeReward.Accept:ClearAllPoints()
XPBar.PrestigeReward.Accept:SetPoint("TOP", XPBar.PrestigeReward, "BOTTOM", 0, 0) XPBar.PrestigeReward.Accept:SetPoint("TOP", XPBar.PrestigeReward, "BOTTOM", 0, 0)
if not XPBar.PrestigeReward.Accept.template then AS:SkinButton(XPBar.PrestigeReward.Accept)
AS:SkinButton(XPBar.PrestigeReward.Accept)
end
end end
if XPBar.NextAvailable then if XPBar.NextAvailable then
......
...@@ -173,26 +173,15 @@ function AS:Blizzard_Quest() ...@@ -173,26 +173,15 @@ function AS:Blizzard_Quest()
HandleReward(MapQuestInfoRewardsFrame[frame]) HandleReward(MapQuestInfoRewardsFrame[frame])
end end
hooksecurefunc('QuestInfo_ShowRewards', function(self)
for _, frame in pairs(Rewards) do
HandleReward(QuestInfoFrame.rewardsFrame[frame])
end
end)
hooksecurefunc("QuestInfo_GetRewardButton", function(rewardsFrame, index) hooksecurefunc("QuestInfo_GetRewardButton", function(rewardsFrame, index)
local RewardButton = rewardsFrame.RewardButtons[index] local RewardButton = rewardsFrame.RewardButtons[index]
if (not RewardButton.Backdrop) then if (not RewardButton.Backdrop) then
AS:CreateBackdrop(RewardButton) HandleReward(RewardButton)
AS:SkinTexture(RewardButton.Icon, true)
RewardButton.IconBorder:SetAlpha(0) RewardButton.IconBorder:SetAlpha(0)
RewardButton.NameFrame:Hide() RewardButton.NameFrame:Hide()
RewardButton.Backdrop:SetPoint('TOPLEFT', RewardButton.Icon, 'TOPRIGHT', 1, 0)
RewardButton.Backdrop:SetPoint('BOTTOMLEFT', RewardButton.Icon, 'BOTTOMRIGHT', 1, 0)
RewardButton.Backdrop:SetPoint('RIGHT', RewardButton, 'RIGHT', -5, 0)
hooksecurefunc(RewardButton.IconBorder, 'SetVertexColor', function(self, r, g, b) RewardButton.Icon.Backdrop:SetBackdropBorderColor(r, g, b) end) hooksecurefunc(RewardButton.IconBorder, 'SetVertexColor', function(self, r, g, b) RewardButton.Icon.Backdrop:SetBackdropBorderColor(r, g, b) end)
hooksecurefunc(RewardButton.IconBorder, 'Hide', function(self) RewardButton.Icon.Backdrop:SetBackdropBorderColor(unpack(AS.BorderColor)) end) hooksecurefunc(RewardButton.IconBorder, 'Hide', function(self) RewardButton.Icon.Backdrop:SetBackdropBorderColor(unpack(AS.BorderColor)) end)
else else
......
...@@ -17,10 +17,8 @@ function AS:TomeOfTeleportation() ...@@ -17,10 +17,8 @@ function AS:TomeOfTeleportation()
local Backdrop = { bgFile = AS.Blank, tile = false, tileSize = 0, insets = {left = 4, right = 4, top = 4, bottom = 4} } local Backdrop = { bgFile = AS.Blank, tile = false, tileSize = 0, insets = {left = 4, right = 4, top = 4, bottom = 4} }
local function SkinFrame() local function SkinFrame()
if not TeleporterFrame.IsSkinned then TeleporterFrame:SetBackdrop(Backdrop)
TeleporterFrame:SetBackdrop(Backdrop) TeleporterFrame:SetBackdropColor(R, G, B, Alpha)
TeleporterFrame:SetBackdropColor(R, G, B, Alpha)
end
local index = 0 local index = 0
while _G['TeleporterFrameTeleporterB'..index] do while _G['TeleporterFrameTeleporterB'..index] do
_G['TeleporterFrameTeleporterB'..index]:SetBackdrop(Backdrop) _G['TeleporterFrameTeleporterB'..index]:SetBackdrop(Backdrop)
...@@ -32,6 +30,7 @@ function AS:TomeOfTeleportation() ...@@ -32,6 +30,7 @@ function AS:TomeOfTeleportation()
AS:StripTextures(TeleporterTitleFrame) AS:StripTextures(TeleporterTitleFrame)
TeleporterTitleFrame:SetPoint("TOP", "$parent", "TOP", 0, 0) TeleporterTitleFrame:SetPoint("TOP", "$parent", "TOP", 0, 0)
end end
hooksecurefunc(_G, "TeleporterOpenFrame", SkinFrame) hooksecurefunc(_G, "TeleporterOpenFrame", SkinFrame)
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment