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.

27 lines
778 B

local E, L, V, P, G = unpack(select(2, ...)) --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
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')