sonic-bluestreak/sonic-bluestreak.love/birb/modules/gui/mixins/screens.lua

16 lines
307 B
Lua
Raw Permalink Normal View History

2021-11-25 10:46:15 +01:00
local ScreenList = Object:extend()
function ScreenList:initScreens()
self.screens = {}
end
function ScreenList:addScreen(name, screen)
self.screens[name] = screen
end
function ScreenList:deleteScreen(name)
self.screens[name]:purgeElements()
self.screens[name] = nil
end
return ScreenList