initial commit
This commit is contained in:
42
Modules/Skins/Blizzard/Raid.lua
Normal file
42
Modules/Skins/Blizzard/Raid.lua
Normal file
@@ -0,0 +1,42 @@
|
||||
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
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:CreateBackdrop('Transparent')
|
||||
slot.backdrop:SetAllPoints()
|
||||
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')
|
||||
Reference in New Issue
Block a user