hide AnnouncementFrame when not in arena

This commit is contained in:
Sumsebrum 2022-01-12 02:25:40 +01:00
parent 91f7fcb998
commit 2c4308712d

View File

@ -92,6 +92,7 @@ end
function ACDFrame:JOINED_ARENA() function ACDFrame:JOINED_ARENA()
if Gladdy.db.countdown then if Gladdy.db.countdown then
self.ACDNumFrame:Show()
self:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL") self:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL")
self:SetScript("OnEvent", ACDFrame.OnEvent) self:SetScript("OnEvent", ACDFrame.OnEvent)
self.endTime = GetTime() + 70 self.endTime = GetTime() + 70
@ -152,6 +153,7 @@ function ACDFrame:Reset()
self:UnregisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL") self:UnregisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL")
self:SetScript("OnUpdate", nil) self:SetScript("OnUpdate", nil)
self.hidden = true; self.hidden = true;
self.ACDNumFrame:Hide()
self.ACDNumTens:Hide(); self.ACDNumTens:Hide();
self.ACDNumOnes:Hide(); self.ACDNumOnes:Hide();
self.ACDNumOne:Hide(); self.ACDNumOne:Hide();