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.
41 lines
820 B
41 lines
820 B
local E, L, V, P, G = unpack(ElvUI)
|
|
local S = E:GetModule('Skins')
|
|
|
|
local _G = _G
|
|
local pairs = pairs
|
|
|
|
local StripAllTextures = {
|
|
'RaidGroup1',
|
|
'RaidGroup2',
|
|
'RaidGroup3',
|
|
'RaidGroup4',
|
|
'RaidGroup5',
|
|
'RaidGroup6',
|
|
'RaidGroup7',
|
|
'RaidGroup8',
|
|
}
|
|
|
|
function S:Blizzard_RaidUI()
|
|
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.raid) then return end
|
|
|
|
for _, object in pairs(StripAllTextures) do
|
|
local obj = _G[object]
|
|
if obj then
|
|
obj:StripTextures()
|
|
|
|
for j=1,5 do
|
|
local slot = _G[object..'Slot'..j]
|
|
if slot then
|
|
slot:StripTextures()
|
|
slot:SetTemplate('Transparent')
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
for i=1, _G.MAX_RAID_GROUPS*5 do
|
|
S:HandleButton(_G['RaidGroupButton'..i], true)
|
|
end
|
|
end
|
|
|
|
S:AddCallbackForAddon('Blizzard_RaidUI')
|
|
|