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.

49 lines
1.2 KiB

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