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.2 KiB
48 lines
1.2 KiB
local E, L, V, P, G = unpack(ElvUI)
|
|
local S = E:GetModule('Skins')
|
|
|
|
local _G = _G
|
|
local pairs = pairs
|
|
|
|
function S:RaidInfoFrame()
|
|
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.nonraid) then return end
|
|
|
|
local StripAllTextures = {
|
|
_G.RaidInfoFrame,
|
|
_G.RaidInfoInstanceLabel,
|
|
_G.RaidInfoIDLabel,
|
|
}
|
|
local KillTextures = {
|
|
_G.RaidInfoScrollFrameScrollBarBG,
|
|
_G.RaidInfoScrollFrameScrollBarTop,
|
|
_G.RaidInfoScrollFrameScrollBarBottom,
|
|
_G.RaidInfoScrollFrameScrollBarMiddle,
|
|
}
|
|
local buttons = {
|
|
_G.RaidFrameConvertToRaidButton,
|
|
_G.RaidFrameRaidInfoButton,
|
|
_G.RaidInfoExtendButton,
|
|
_G.RaidInfoCancelButton,
|
|
}
|
|
|
|
for _, object in pairs(StripAllTextures) do
|
|
object:StripTextures()
|
|
end
|
|
for _, texture in pairs(KillTextures) do
|
|
texture:Kill()
|
|
end
|
|
for i = 1, #buttons do
|
|
S:HandleButton(buttons[i])
|
|
end
|
|
|
|
_G.RaidInfoScrollFrame:StripTextures()
|
|
|
|
local RaidInfoFrame = _G.RaidInfoFrame
|
|
RaidInfoFrame:SetTemplate('Transparent')
|
|
RaidInfoFrame.Header:StripTextures()
|
|
S:HandleCloseButton(_G.RaidInfoCloseButton,RaidInfoFrame)
|
|
S:HandleScrollBar(_G.RaidInfoScrollFrameScrollBar)
|
|
S:HandleCheckBox(_G.RaidFrameAllAssistCheckButton)
|
|
end
|
|
|
|
S:AddCallback('RaidInfoFrame')
|
|
|