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