Refonte pour utiliser le systeme de GUI #112
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