hide blizzard frames
This commit is contained in:
parent
b54ed1cda1
commit
c43228f0b9
26
Gladdy.lua
26
Gladdy.lua
@ -205,7 +205,7 @@ function Gladdy:OnInitialize()
|
|||||||
L = self.L
|
L = self.L
|
||||||
|
|
||||||
self.testData = {
|
self.testData = {
|
||||||
["arena1"] = { name = "Swift", raceLoc = L["Tauren"], classLoc = L["Warrior"], class = "WARRIOR", health = 9635, healthMax = 14207, power = 76, powerMax = 100, powerType = 1, testSpec = L["Arms"], race = "Tauren" },
|
["arena1"] = { name = "Swift", raceLoc = L["NightElf"], classLoc = L["Warrior"], class = "WARRIOR", health = 9635, healthMax = 14207, power = 76, powerMax = 100, powerType = 1, testSpec = L["Arms"], race = "NightElf" },
|
||||||
["arena2"] = { name = "Vilden", raceLoc = L["Undead"], classLoc = L["Mage"], class = "MAGE", health = 10969, healthMax = 11023, power = 7833, powerMax = 10460, powerType = 0, testSpec = L["Frost"], race = "Scourge" },
|
["arena2"] = { name = "Vilden", raceLoc = L["Undead"], classLoc = L["Mage"], class = "MAGE", health = 10969, healthMax = 11023, power = 7833, powerMax = 10460, powerType = 0, testSpec = L["Frost"], race = "Scourge" },
|
||||||
["arena3"] = { name = "Krymu", raceLoc = L["Human"], classLoc = L["Rogue"], class = "ROGUE", health = 1592, healthMax = 11740, power = 45, powerMax = 110, powerType = 3, testSpec = L["Subtlety"], race = "Human" },
|
["arena3"] = { name = "Krymu", raceLoc = L["Human"], classLoc = L["Rogue"], class = "ROGUE", health = 1592, healthMax = 11740, power = 45, powerMax = 110, powerType = 3, testSpec = L["Subtlety"], race = "Human" },
|
||||||
["arena4"] = { name = "Talmon", raceLoc = L["Human"], classLoc = L["Warlock"], class = "WARLOCK", health = 10221, healthMax = 14960, power = 9855, powerMax = 9855, powerType = 0, testSpec = L["Demonology"], race = "Human" },
|
["arena4"] = { name = "Talmon", raceLoc = L["Human"], classLoc = L["Warlock"], class = "WARLOCK", health = 10221, healthMax = 14960, power = 9855, powerMax = 9855, powerType = 0, testSpec = L["Demonology"], race = "Human" },
|
||||||
@ -229,7 +229,13 @@ function Gladdy:OnInitialize()
|
|||||||
end
|
end
|
||||||
self:DeleteUnknownOptions(self.db, self.defaults.profile)
|
self:DeleteUnknownOptions(self.db, self.defaults.profile)
|
||||||
if Gladdy.db.hideBlizzard == "always" then
|
if Gladdy.db.hideBlizzard == "always" then
|
||||||
SetCVar("showArenaEnemyFrames", 0)
|
if IsAddOnLoaded("Blizzard_ArenaUI") then
|
||||||
|
ArenaEnemyFrame1:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame2:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame3:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame4:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame5:SetAlpha(0)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -365,7 +371,13 @@ function Gladdy:Reset()
|
|||||||
self:ResetUnit(unit)
|
self:ResetUnit(unit)
|
||||||
end
|
end
|
||||||
if Gladdy.db.hideBlizzard == "never" or Gladdy.db.hideBlizzard == "arena" then
|
if Gladdy.db.hideBlizzard == "never" or Gladdy.db.hideBlizzard == "arena" then
|
||||||
SetCVar("showArenaEnemyFrames", 1)
|
if IsAddOnLoaded("Blizzard_ArenaUI") then
|
||||||
|
ArenaEnemyFrame1:SetAlpha(1)
|
||||||
|
ArenaEnemyFrame2:SetAlpha(1)
|
||||||
|
ArenaEnemyFrame3:SetAlpha(1)
|
||||||
|
ArenaEnemyFrame4:SetAlpha(1)
|
||||||
|
ArenaEnemyFrame5:SetAlpha(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -425,6 +437,12 @@ function Gladdy:JoinedArena()
|
|||||||
self.buttons["arena" .. i]:SetAlpha(1)
|
self.buttons["arena" .. i]:SetAlpha(1)
|
||||||
end
|
end
|
||||||
if Gladdy.db.hideBlizzard == "arena" or Gladdy.db.hideBlizzard == "always" then
|
if Gladdy.db.hideBlizzard == "arena" or Gladdy.db.hideBlizzard == "always" then
|
||||||
SetCVar("showArenaEnemyFrames", 0)
|
if IsAddOnLoaded("Blizzard_ArenaUI") then
|
||||||
|
ArenaEnemyFrame1:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame2:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame3:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame4:SetAlpha(0)
|
||||||
|
ArenaEnemyFrame5:SetAlpha(0)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user