fix: make sure overlay state reset when it must
This commit is contained in:
parent
8f2886be96
commit
1ab9159120
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue