From 37902e37e793026c2e578bbaefe68caf20165026 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Tue, 25 Jan 2022 20:03:17 +0100 Subject: [PATCH] hide countdown frame when not used --- Modules/ArenaCountDown.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/ArenaCountDown.lua b/Modules/ArenaCountDown.lua index dda004f..6218064 100644 --- a/Modules/ArenaCountDown.lua +++ b/Modules/ArenaCountDown.lua @@ -26,7 +26,7 @@ function ACDFrame:Initialize() ACDNumFrame:SetHeight(512) ACDNumFrame:SetWidth(512) ACDNumFrame:SetPoint("CENTER", 0, 256) - ACDNumFrame:Show() + ACDNumFrame:Hide() self.ACDNumFrame = ACDNumFrame local ACDNumTens = ACDNumFrame:CreateTexture("ACDNumTens", "HIGH") @@ -88,6 +88,7 @@ function ACDFrame.OnUpdate(self, elapse) self.countdown = self.countdown - elapse; else self.hidden = true; + self.ACDNumFrame:Hide() self.ACDNumTens:Hide(); self.ACDNumOnes:Hide(); self.ACDNumOne:Hide();