Commit 559cc0ca authored by Merathilis's avatar Merathilis

Added AzeriteEssence skin.

parent a9dda65b
local MER, E, L, V, P, G = unpack(select(2, ...))
local MERS = MER:GetModule("muiSkins")
local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local pairs = pairs
--WoW API / Variables
local C_AzeriteEssence_CanOpenUI = C_AzeriteEssence.CanOpenUI
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.AzeriteEssence ~= true or E.private.muiSkins.blizzard.AzeriteEssence ~= true then return end
if not C_AzeriteEssence_CanOpenUI() then return end
local AzeriteEssenceUI = _G.AzeriteEssenceUI
AzeriteEssenceUI:Styling()
for _, button in pairs(AzeriteEssenceUI.EssenceList.buttons) do
if button.backdrop then
button.backdrop:SetTemplate("Transparent")
MERS:CreateGradient(button.backdrop)
end
end
end
S:AddCallbackForAddon("Blizzard_AzeriteEssenceUI", "mUIAzeriteEssenceUI", LoadSkin)
......@@ -5,6 +5,7 @@
<Script file="Blizzard_ArchaeologyUI.lua"/>
<Script file="Blizzard_ArtifactUI.lua"/>
<Script file="Blizzard_AuctionUI.lua"/>
<Script file="Blizzard_AzeriteEssenceUI.lua"/>
<Script file="Blizzard_AzeriteRespecUI.lua"/>
<Script file="Blizzard_AzeriteUI.lua"/>
<Script file="Blizzard_BindingUI.lua"/>
......
......@@ -494,6 +494,11 @@ local function SkinsTable()
name = L["Archaeology Frame"],
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.archaeology end,
},
AzeriteEssence = {
type = "toggle",
name = L["Azerite Essence"],
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.AzeriteEssence end,
}
},
}
......
......@@ -75,6 +75,7 @@ V.muiSkins = {
AlliedRaces = true,
GMChat = true,
Archaeology = true,
AzeriteEssence = true,
},
addonSkins = {
......
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