Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit c4db0f7d14 - Show all commits

View file

@ -1,7 +1,5 @@
local GuiScreen = Object:extend()
local ElementList = require "birb.modules.gui.mixins.elements"
local ScreenList = require "birb.modules.gui.mixins.screens"
GuiScreen:implement(ScreenList)
GuiScreen:implement(ElementList)
local TweenManager = require "birb.classes.time"
@ -31,11 +29,6 @@ end
function GuiScreen:update(dt)
self.tweens:update(dt)
for _, screen in pairs(self.screens) do
if (screen ~= nil) then
screen:update(dt)
end
end
end
function GuiScreen:show()
@ -69,7 +62,6 @@ end
function GuiScreen:reset()
self:initElements()
self:initScreens()
end
function GuiScreen:registerElements()