From c4db0f7d1499335121a5761bb59c8cd0c6a63e22 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 8 Dec 2021 11:05:46 +0100 Subject: [PATCH] fix: remove subscreen handling It'll be better handled by a special exclusive screen system --- sonic-radiance.love/birb/modules/gui/screen.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sonic-radiance.love/birb/modules/gui/screen.lua b/sonic-radiance.love/birb/modules/gui/screen.lua index 4a6eb49..d4906c6 100644 --- a/sonic-radiance.love/birb/modules/gui/screen.lua +++ b/sonic-radiance.love/birb/modules/gui/screen.lua @@ -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()