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.

31 lines
1.0 KiB

local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule('Skins')
local _G = _G
local hooksecurefunc = hooksecurefunc
local function SetupMajorFaction(frame)
if frame.Divider then frame.Divider:Hide() end
if frame.NineSlice then frame.NineSlice:Hide() end
if frame.Background then frame.Background:Hide() end
if frame.BackgroundShadow then frame.BackgroundShadow:Hide() end
if frame.CloseButton.Border then frame.CloseButton.Border:Hide() end
end
function S:Blizzard_MajorFactions()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.majorFactions) then return end
local RenownFrame = _G.MajorFactionRenownFrame
RenownFrame:SetTemplate('Transparent')
S:HandleCloseButton(RenownFrame.CloseButton)
if RenownFrame.LevelSkipButton then
S:HandleButton(RenownFrame.LevelSkipButton)
end
if E.private.skins.parchmentRemoverEnable then
hooksecurefunc(RenownFrame, 'SetUpMajorFactionData', SetupMajorFaction)
end
end
S:AddCallbackForAddon('Blizzard_MajorFactions')