25 lines
641 B
Lua
25 lines
641 B
Lua
local commons = require "scenes.debug.commons.menu"
|
|
local menu = {}
|
|
menu.commons = commons
|
|
menu.ExitWidget = commons.DebugWidget:extend()
|
|
menu.ShowBackgroundWidget = commons.DebugWidget:extend()
|
|
|
|
-- ExitWidget
|
|
function menu.ExitWidget:new(scene, menuName)
|
|
menu.ExitWidget.super.new(self, scene, menuName, "Exit")
|
|
end
|
|
|
|
function menu.ExitWidget:action()
|
|
love.event.quit("000")
|
|
end
|
|
|
|
-- ShowBackground
|
|
function menu.ShowBackgroundWidget:new(scene, menuName)
|
|
menu.ShowBackgroundWidget.super.new(self, scene, menuName, "Show Background")
|
|
end
|
|
|
|
function menu.ShowBackgroundWidget:action()
|
|
self.scene.menusystem:deactivate()
|
|
end
|
|
|
|
return menu
|