hide AnnouncementFrame when not in arena
This commit is contained in:
parent
91f7fcb998
commit
2c4308712d
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user