hide countdown frame when not used
This commit is contained in:
parent
9266274c16
commit
37902e37e7
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user