fix ArenaEnemyFrame hide only if exists
This commit is contained in:
parent
2c845547a4
commit
a0ed3be791
22
Gladdy.lua
22
Gladdy.lua
@ -463,18 +463,40 @@ end
|
||||
|
||||
function Gladdy:BlizzArenaSetAlpha(alpha)
|
||||
if IsAddOnLoaded("Blizzard_ArenaUI") then
|
||||
if (ArenaEnemyFrames) then
|
||||
ArenaEnemyFrames:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame1 then
|
||||
ArenaEnemyFrame1:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame1PetFrame then
|
||||
ArenaEnemyFrame1PetFrame:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame2 then
|
||||
ArenaEnemyFrame2:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame2PetFrame then
|
||||
ArenaEnemyFrame2PetFrame:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame3 then
|
||||
ArenaEnemyFrame3:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame3PetFrame then
|
||||
ArenaEnemyFrame3PetFrame:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame4 then
|
||||
ArenaEnemyFrame4:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame4PetFrame then
|
||||
ArenaEnemyFrame4PetFrame:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame5 then
|
||||
ArenaEnemyFrame5:SetAlpha(alpha)
|
||||
end
|
||||
if ArenaEnemyFrame5PetFrame then
|
||||
ArenaEnemyFrame5PetFrame:SetAlpha(alpha)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
---------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user