hide countdown frame when not used

This commit is contained in:
Sumsebrum 2022-01-25 20:03:17 +01:00
parent 9266274c16
commit 37902e37e7

View File

@ -26,7 +26,7 @@ function ACDFrame:Initialize()
ACDNumFrame:SetHeight(512) ACDNumFrame:SetHeight(512)
ACDNumFrame:SetWidth(512) ACDNumFrame:SetWidth(512)
ACDNumFrame:SetPoint("CENTER", 0, 256) ACDNumFrame:SetPoint("CENTER", 0, 256)
ACDNumFrame:Show() ACDNumFrame:Hide()
self.ACDNumFrame = ACDNumFrame self.ACDNumFrame = ACDNumFrame
local ACDNumTens = ACDNumFrame:CreateTexture("ACDNumTens", "HIGH") local ACDNumTens = ACDNumFrame:CreateTexture("ACDNumTens", "HIGH")
@ -88,6 +88,7 @@ function ACDFrame.OnUpdate(self, elapse)
self.countdown = self.countdown - elapse; self.countdown = self.countdown - elapse;
else else
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();