You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
711 B

4 years ago
local E, L, V, P, G = unpack(ElvUI)
5 years ago
local S = E:GetModule('Skins')
local _G = _G
local hooksecurefunc = hooksecurefunc
function S:Blizzard_CovenantRenown()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.covenantRenown) then return end
local frame = _G.CovenantRenownFrame
S:HandleCloseButton(frame.CloseButton)
hooksecurefunc(frame, 'SetUpCovenantData', function(Frame)
Frame.CloseButton.Border:Hide()
if E.private.skins.parchmentRemoverEnable then
Frame:StripTextures()
Frame:SetTemplate('Transparent')
end
end)
if E.private.skins.parchmentRemoverEnable then
frame.TrackFrame:SetTemplate('Transparent')
end
end
S:AddCallbackForAddon('Blizzard_CovenantRenown')