Refonte pour utiliser le systeme de GUI #112
1 changed files with 0 additions and 8 deletions
|
@ -1,7 +1,5 @@
|
||||||
local GuiScreen = Object:extend()
|
local GuiScreen = Object:extend()
|
||||||
local ElementList = require "birb.modules.gui.mixins.elements"
|
local ElementList = require "birb.modules.gui.mixins.elements"
|
||||||
local ScreenList = require "birb.modules.gui.mixins.screens"
|
|
||||||
GuiScreen:implement(ScreenList)
|
|
||||||
GuiScreen:implement(ElementList)
|
GuiScreen:implement(ElementList)
|
||||||
|
|
||||||
local TweenManager = require "birb.classes.time"
|
local TweenManager = require "birb.classes.time"
|
||||||
|
@ -31,11 +29,6 @@ end
|
||||||
|
|
||||||
function GuiScreen:update(dt)
|
function GuiScreen:update(dt)
|
||||||
self.tweens:update(dt)
|
self.tweens:update(dt)
|
||||||
for _, screen in pairs(self.screens) do
|
|
||||||
if (screen ~= nil) then
|
|
||||||
screen:update(dt)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function GuiScreen:show()
|
function GuiScreen:show()
|
||||||
|
@ -69,7 +62,6 @@ end
|
||||||
|
|
||||||
function GuiScreen:reset()
|
function GuiScreen:reset()
|
||||||
self:initElements()
|
self:initElements()
|
||||||
self:initScreens()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function GuiScreen:registerElements()
|
function GuiScreen:registerElements()
|
||||||
|
|
Loading…
Reference in a new issue