2020-08-20 15:39:02 +02:00
|
|
|
local MenuScreenParent = Object:extend()
|
|
|
|
|
|
|
|
local menu = require "scenes.overworld.screens.menu"
|
|
|
|
|
|
|
|
function MenuScreenParent:new(scene)
|
|
|
|
self.scene = scene
|
|
|
|
self.menusystem = scene.menusystem
|
|
|
|
|
|
|
|
self.menuObj = menu
|
|
|
|
|
|
|
|
self.scene:registerScreen(self)
|
2020-08-23 12:06:18 +02:00
|
|
|
self:setMenu()
|
2020-08-20 15:39:02 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function MenuScreenParent:update(dt)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function MenuScreenParent:setMenu()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function MenuScreenParent:quit()
|
|
|
|
self.scene.menusystem:reset()
|
|
|
|
self.scene:quitScreen()
|
|
|
|
end
|
|
|
|
|
|
|
|
function MenuScreenParent:draw()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2020-08-26 18:38:40 +02:00
|
|
|
function MenuScreenParent:drawBackground()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2020-08-20 15:39:02 +02:00
|
|
|
return MenuScreenParent
|