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.

48 lines
1.4 KiB

local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule('Skins')
local _G = _G
local select = select
function S:BattleNetFrames()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.misc) then return end
local skins = {
_G.BNToastFrame,
_G.TimeAlertFrame,
_G.TicketStatusFrameButton.NineSlice -- Ticket Frames (not GMTicketFrames)
}
for i = 1, #skins do
skins[i]:SetTemplate('Transparent')
end
local ReportFrame = _G.PlayerReportFrame
ReportFrame:StripTextures()
ReportFrame:SetTemplate('Transparent')
ReportFrame.Comment:StripTextures()
S:HandleEditBox(ReportFrame.Comment)
S:HandleButton(ReportFrame.ReportButton)
S:HandleButton(ReportFrame.CancelButton)
local ReportCheatingDialog = _G.ReportCheatingDialog
ReportCheatingDialog:StripTextures()
_G.ReportCheatingDialogCommentFrame:StripTextures()
S:HandleButton(_G.ReportCheatingDialogReportButton)
S:HandleButton(_G.ReportCheatingDialogCancelButton)
ReportCheatingDialog:SetTemplate('Transparent')
S:HandleEditBox(_G.ReportCheatingDialogCommentFrameEditBox)
local BattleTagInviteFrame = _G.BattleTagInviteFrame
BattleTagInviteFrame:StripTextures()
BattleTagInviteFrame:SetTemplate('Transparent')
for i=1, BattleTagInviteFrame:GetNumChildren() do
local child = select(i, BattleTagInviteFrame:GetChildren())
if child:IsObjectType('Button') then
S:HandleButton(child)
end
end
end
S:AddCallback('BattleNetFrames')