|
|
|
|
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.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 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')
|