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

Artifact / PvP / WorldMap

parent 27e23e51
......@@ -1077,7 +1077,7 @@ function AS:SkinStatusBarWidget(widgetFrame)
if bar.BGRight then bar.BGRight:Hide() end
if bar.BGCenter then bar.BGCenter:Hide() end
if not bar.backdrop then
if not bar.Backdrop then
AS:CreateBackdrop(bar)
end
......
......@@ -27,7 +27,7 @@ function AS:Blizzard_ArtifactUI(event, addon)
child.HighlightTexture.SetAlpha = AS.Noop
if child.Selected:IsShown() then
child.backdrop:SetBackdropBorderColor(1,1,1)
child.Backdrop:SetBackdropBorderColor(1, 1, 1)
end
child.Selected:SetAlpha(0)
......@@ -35,9 +35,9 @@ function AS:Blizzard_ArtifactUI(event, addon)
hooksecurefunc(child.Selected, "SetShown", function(_, isActive)
if isActive then
child.backdrop:SetBackdropBorderColor(1,1,1)
child.Backdrop:SetBackdropBorderColor(1, 1, 1)
else
child.backdrop:SetBackdropBorderColor(unpack(E.media.bordercolor))
child.Backdrop:SetBackdropBorderColor(unpack(AS.BorderColor))
end
end)
end
......
......@@ -112,9 +112,9 @@ function AS:Blizzard_LootFrames()
-- create a backdrop around the icon
AS:CreateBackdrop(frame, 'Default')
frame.backdrop:SetPoint("TOPLEFT", frame.Icon, -2, 2)
frame.backdrop:SetPoint("BOTTOMRIGHT", frame.Icon, 2, -2)
frame.backdrop:SetBackdropColor(0,0,0,0)
frame.Backdrop:SetPoint("TOPLEFT", frame.Icon, -2, 2)
frame.Backdrop:SetPoint("BOTTOMRIGHT", frame.Icon, 2, -2)
frame.Backdrop:SetBackdropColor(0,0,0,0)
frame.isSkinned = true
end
end
......@@ -136,8 +136,8 @@ function AS:Blizzard_LootFrames()
i:SetTexture(icon)
AS:SkinTexture(i)
AS:CreateBackdrop(b)
b.backdrop:SetOutside(i)
b.backdrop:SetBackdropBorderColor(c.r, c.g, c.b)
b.Backdrop:SetOutside(i)
b.Backdrop:SetBackdropBorderColor(c.r, c.g, c.b)
end
for i=1, MasterLooterFrame:GetNumChildren() do
......@@ -159,7 +159,7 @@ function AS:Blizzard_LootFrames()
-- bonus
AS:StripTextures(BonusRollFrame)
AS:CreateBackdrop(BonusRollFrame)
BonusRollFrame.backdrop:SetFrameLevel(0)
BonusRollFrame.Backdrop:SetFrameLevel(0)
AS:SkinTexture(BonusRollFrame.PromptFrame.Icon)
BonusRollFrame.PromptFrame.IconBackdrop = CreateFrame("Frame", nil, BonusRollFrame.PromptFrame)
BonusRollFrame.PromptFrame.IconBackdrop:SetFrameLevel(BonusRollFrame.PromptFrame.IconBackdrop:GetFrameLevel() - 1)
......
......@@ -214,8 +214,8 @@ function AS:Blizzard_BattlefieldMap(event, addon)
end)
local function setBackdropAlpha()
if BattlefieldMapFrame.backdrop then
BattlefieldMapFrame.backdrop:SetBackdropColor(0, 0, 0, GetOpacity())
if BattlefieldMapFrame.Backdrop then
BattlefieldMapFrame.Backdrop:SetBackdropColor(0, 0, 0, GetOpacity())
end
end
......@@ -266,7 +266,7 @@ function AS:Blizzard_WorldStateScore()
if XPBar.Bar and not XPBar.Bar.Backdrop then
AS:CreateBackdrop(XPBar.Bar)
if XPBar.Bar.Background then
XPBar.Bar.Background:SetInside(XPBar.Bar.backdrop)
XPBar.Bar.Background:SetInside(XPBar.Bar.Backdrop)
end
if XPBar.Bar.Spark then
XPBar.Bar.Spark:SetAlpha(0)
......@@ -280,9 +280,7 @@ function AS:Blizzard_WorldStateScore()
if XPBar.PrestigeReward and XPBar.PrestigeReward.Accept then
XPBar.PrestigeReward.Accept:ClearAllPoints()
XPBar.PrestigeReward.Accept:SetPoint("TOP", XPBar.PrestigeReward, "BOTTOM", 0, 0)
if not XPBar.PrestigeReward.Accept.template then
AS:SkinButton(XPBar.PrestigeReward.Accept)
end
AS:SkinButton(XPBar.PrestigeReward.Accept)
end
if XPBar.NextAvailable then
......
......@@ -173,26 +173,15 @@ function AS:Blizzard_Quest()
HandleReward(MapQuestInfoRewardsFrame[frame])
end
hooksecurefunc('QuestInfo_ShowRewards', function(self)
for _, frame in pairs(Rewards) do
HandleReward(QuestInfoFrame.rewardsFrame[frame])
end
end)
hooksecurefunc("QuestInfo_GetRewardButton", function(rewardsFrame, index)
local RewardButton = rewardsFrame.RewardButtons[index]
if (not RewardButton.Backdrop) then
AS:CreateBackdrop(RewardButton)
AS:SkinTexture(RewardButton.Icon, true)
HandleReward(RewardButton)
RewardButton.IconBorder:SetAlpha(0)
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, 'Hide', function(self) RewardButton.Icon.Backdrop:SetBackdropBorderColor(unpack(AS.BorderColor)) end)
else
......
......@@ -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 function SkinFrame()
if not TeleporterFrame.IsSkinned then
TeleporterFrame:SetBackdrop(Backdrop)
TeleporterFrame:SetBackdropColor(R, G, B, Alpha)
end
TeleporterFrame:SetBackdrop(Backdrop)
TeleporterFrame:SetBackdropColor(R, G, B, Alpha)
local index = 0
while _G['TeleporterFrameTeleporterB'..index] do
_G['TeleporterFrameTeleporterB'..index]:SetBackdrop(Backdrop)
......@@ -32,6 +30,7 @@ function AS:TomeOfTeleportation()
AS:StripTextures(TeleporterTitleFrame)
TeleporterTitleFrame:SetPoint("TOP", "$parent", "TOP", 0, 0)
end
hooksecurefunc(_G, "TeleporterOpenFrame", SkinFrame)
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