Commit 6ba3d7cb authored by Merathilis's avatar Merathilis

Added Archaelogy skin. Always missed that.

parent 092a6847
local MER, E, L, V, P, G = unpack(select(2, ...))
local MERS = MER:GetModule("muiSkins")
local S = E:GetModule("Skins")
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
--Global variables that we don't cache, list them here for the mikk's Find Globals script
-- GLOBALS:
local function styleAlliedRaces()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.AlliedRaces ~= true or E.private.muiSkins.blizzard.AlliedRaces ~= true then return end
......
local MER, E, L, V, P, G = unpack(select(2, ...))
local MERS = MER:GetModule("muiSkins")
local S = E:GetModule("Skins")
--Cache global variables
--Lua functions
local _G = _G
local select, unpack = select, unpack
--WoW API / Variables
local CreateFrame = CreateFrame
-- GLOBALS:
local function styleArchaeology()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.archaeology ~= true or E.private.muiSkins.blizzard.Archaeology ~= true then return end
local ArchaeologyFrame = _G.ArchaeologyFrame
-- Hide the Parchment
ArchaeologyFrame:DisableDrawLayer("BACKGROUND")
ArchaeologyFrame:Styling()
_G.ArchaeologyFrameSummaryPageTitle:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameArtifactPageHistoryTitle:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameArtifactPageHistoryScrollChildText:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameHelpPageTitle:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameHelpPageDigTitle:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameHelpPageHelpScrollHelpText:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameCompletedPage:GetRegions():SetTextColor(1, 1, 1)
_G.ArchaeologyFrameCompletedPageTitle:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameCompletedPageTitleTop:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameCompletedPageTitleMid:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameCompletedPagePageText:SetTextColor(1, 1, 1)
_G.ArchaeologyFrameSummaryPagePageText:SetTextColor(1, 1, 1)
for i = 1, _G.ARCHAEOLOGY_MAX_RACES do
_G["ArchaeologyFrameSummaryPageRace"..i]:GetRegions():SetTextColor(1, 1, 1)
end
for i = 1, _G.ARCHAEOLOGY_MAX_COMPLETED_SHOWN do
local bu = _G["ArchaeologyFrameCompletedPageArtifact"..i]
bu:GetRegions():Hide()
select(2, bu:GetRegions()):Hide()
select(3, bu:GetRegions()):SetTexCoord(unpack(E.TexCoords))
select(4, bu:GetRegions()):SetTextColor(1, 1, 1)
select(5, bu:GetRegions()):SetTextColor(1, 1, 1)
bu:CreateBackdrop("Transparent")
MERS:CreateGradient(bu)
end
_G.ArchaeologyFrameArtifactPageIcon:SetTexCoord(unpack(E.TexCoords))
end
S:AddCallbackForAddon("Blizzard_ArchaeologyUI", "mUIArchaeology", styleArchaeology)
......@@ -2,6 +2,7 @@
<Script file="Blizzard_AchievementUI.lua"/>
<Script file="Blizzard_AdventureMap.lua"/>
<Script file="Blizzard_AlliedRacesUI.lua"/>
<Script file="Blizzard_ArchaeologyUI.lua"/>
<Script file="Blizzard_ArtifactUI.lua"/>
<Script file="Blizzard_AuctionUI.lua"/>
<Script file="Blizzard_AzeriteRespecUI.lua"/>
......
......@@ -479,6 +479,11 @@ local function SkinsTable()
name = L["GM Chat"],
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.GMChat end,
},
Archaeology = {
type = "toggle",
name = L["Archaeology Frame"],
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.archaeology end,
},
},
}
......
......@@ -74,6 +74,7 @@ V.muiSkins = {
voidstorage = true,
AlliedRaces = true,
GMChat = true,
Archaeology = 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