From d85cd894fb9c28eaf6169afae012e54f22ad8481 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 5 Jan 2022 23:25:19 +0100 Subject: [PATCH] feat: add a way to get screens from the gui --- sonic-radiance.love/birb/modules/gui/mixins/screens.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonic-radiance.love/birb/modules/gui/mixins/screens.lua b/sonic-radiance.love/birb/modules/gui/mixins/screens.lua index 4e594eb..f41a502 100644 --- a/sonic-radiance.love/birb/modules/gui/mixins/screens.lua +++ b/sonic-radiance.love/birb/modules/gui/mixins/screens.lua @@ -13,4 +13,8 @@ function ScreenList:deleteScreen(name) self.screens[name] = nil end +function ScreenList:getScreen(name) + return self.screens[name] +end + return ScreenList \ No newline at end of file