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.

139 lines
3.5 KiB

4 years ago
local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule('Skins')
local _G = _G
local ipairs, unpack = ipairs, unpack
4 years ago
local hooksecurefunc = hooksecurefunc
local StripAllTextures = {
'RaidGroup1',
'RaidGroup2',
'RaidGroup3',
'RaidGroup4',
'RaidGroup5',
'RaidGroup6',
'RaidGroup7',
'RaidGroup8'
4 years ago
}
function S:Blizzard_RaidUI()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.raid) then return end
-- Raid Frame Tab
S:HandleButton(_G.RaidFrameReadyCheckButton)
_G.RaidFrameConvertToRaidButton:Point('BOTTOMRIGHT', -6, 4)
4 years ago
for _, object in ipairs(StripAllTextures) do
local obj = _G[object]
if obj then
obj:StripTextures()
end
end
for i = 1, _G.MAX_RAID_GROUPS * 5 do
S:HandleButton(_G['RaidGroupButton'..i], true)
end
for i = 1, 8 do
for j = 1, 5 do
local slot = _G['RaidGroup'..i..'Slot'..j]
slot:StripTextures()
slot:SetTemplate('Transparent')
end
end
_G.RaidClassButton1:ClearAllPoints()
_G.RaidClassButton1:Point('TOPLEFT', _G.RaidFrame, 'TOPRIGHT', -50, -50)
do -- Classes on the right side of the Raid Control
4 years ago
local prevButton
for index = 1, 13 do
local button = _G['RaidClassButton'..index]
local icon = _G['RaidClassButton'..index..'IconTexture']
local count = _G['RaidClassButton'..index..'Count']
button:StripTextures()
button:SetTemplate()
button:Size(22)
4 years ago
button:ClearAllPoints()
if index == 1 then
button:Point('TOPLEFT', _G.RaidFrame, 'TOPRIGHT', -3, -48)
elseif index == 11 then
button:Point('TOP', prevButton, 'BOTTOM', 0, -25)
else
button:Point('TOP', prevButton, 'BOTTOM', 0, -5)
4 years ago
end
prevButton = button
icon:SetInside()
if index == 11 then
icon:SetTexture([[Interface\RaidFrame\UI-RaidFrame-Pets]])
icon:SetTexCoord(unpack(E.TexCoords))
elseif index == 12 then
icon:SetTexture([[Interface\RaidFrame\UI-RaidFrame-MainTank]])
icon:SetTexCoord(unpack(E.TexCoords))
elseif index == 13 then
icon:SetTexture([[Interface\RaidFrame\UI-RaidFrame-MainAssist]])
icon:SetTexCoord(unpack(E.TexCoords))
end
count:FontTemplate(nil, 12, 'OUTLINE')
count:SetTextHeight(12) -- fixes blur
4 years ago
end
end
hooksecurefunc('RaidPullout_GetFrame', function()
for i = 1, _G.NUM_RAID_PULLOUT_FRAMES do
5 months ago
local backdrop = _G['RaidPullout'..i..'MenuBackdrop']
if backdrop and backdrop.NineSlice then
backdrop.NineSlice:SetTemplate('Transparent')
4 years ago
end
end
end)
3 years ago
local bars = { 'HealthBar', 'ManaBar', 'Target', 'TargetTarget' }
4 years ago
hooksecurefunc('RaidPullout_Update', function(pullOutFrame)
5 months ago
local frameName = pullOutFrame:GetName()
4 years ago
for i = 1, pullOutFrame.numPulloutButtons do
5 months ago
local name = frameName..'Button'..i
local object = _G[name]
if object then
if not object.backdrop then
for _, v in ipairs(bars) do
local bar = _G[name..v]
if bar then
bar:StripTextures()
bar:SetStatusBarTexture(E.media.normTex)
end
end
local manabar = object.manabar
if manabar then
manabar:Point('TOP', object.healthbar, 'BOTTOM', 0, 0)
end
local target = _G[name..'Target']
if target and manabar then
target:Point('TOP', manabar, 'BOTTOM', 0, -1)
end
object:CreateBackdrop('Transparent')
object.backdrop:NudgePoint(nil, -10)
object.backdrop:NudgePoint(nil, 1, nil, 2)
4 years ago
end
5 months ago
local targettarget = _G[name..'TargetTargetFrame']
if targettarget and targettarget.NineSlice then
targettarget.NineSlice:SetTemplate('Transparent')
end
4 years ago
end
end
end)
end
S:AddCallbackForAddon('Blizzard_RaidUI')