fix: remove subscreen handling

It'll be better handled by a special exclusive screen system
This commit is contained in:
Kazhnuz 2021-12-08 11:05:46 +01:00
parent 87d4bd389d
commit c4db0f7d14

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()