fix: make sure overlay state reset when it must

This commit is contained in:
Kazhnuz 2021-12-05 17:50:41 +01:00
parent 8f2886be96
commit 1ab9159120

View file

@ -44,6 +44,11 @@ function OverlayScreen:new(active, doShowVersion)
self.borders = gui.newBorder(424, 30, 8) self.borders = gui.newBorder(424, 30, 8)
self.doShowVersion = doShowVersion self.doShowVersion = doShowVersion
if (active == false) then
wasActive = active
hadVersion = self.doShowVersion
end
OverlayScreen.super.new(self, "overlay") OverlayScreen.super.new(self, "overlay")
local transformStuff = false local transformStuff = false
@ -80,6 +85,7 @@ end
function OverlayScreen:update(dt) function OverlayScreen:update(dt)
wasActive = self.isVisible wasActive = self.isVisible
hadVersion = self.doShowVersion hadVersion = self.doShowVersion
OverlayScreen.super.update(self, dt)
end end
function OverlayScreen:createElements() function OverlayScreen:createElements()