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.4 KiB

local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule('Skins')
local _G = _G
local next = next
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.ReportFrame
ReportFrame:StripTextures()
ReportFrame:SetTemplate('Transparent')
S:HandleCloseButton(ReportFrame.CloseButton)
S:HandleDropDownBox(ReportFrame.ReportingMajorCategoryDropdown)
S:HandleButton(ReportFrame.ReportButton)
S:HandleEditBox(ReportFrame.Comment)
-- Fill me with LOVE <3
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 _, child in next, { BattleTagInviteFrame:GetChildren() } do
if child:IsObjectType('Button') then
S:HandleButton(child)
end
end
end
S:AddCallback('BattleNetFrames')