2021-08-15 16:26:05 +02:00
|
|
|
local commons = require "scenes.menus.commons.menu"
|
2020-08-19 20:44:38 +02:00
|
|
|
local listMenu = require "game.modules.menus.list"
|
2020-08-01 14:01:08 +02:00
|
|
|
local menu = {}
|
|
|
|
menu.commons = commons
|
2020-08-19 20:44:38 +02:00
|
|
|
menu.ShowBackgroundWidget = listMenu.DualTextWidget:extend()
|
2020-08-01 14:01:08 +02:00
|
|
|
|
|
|
|
-- ShowBackground
|
|
|
|
function menu.ShowBackgroundWidget:new(scene, menuName, backgroundName, backgroundId)
|
2020-08-19 20:44:38 +02:00
|
|
|
menu.ShowBackgroundWidget.super.new(self, scene, menuName, backgroundName, "")
|
2020-08-01 14:01:08 +02:00
|
|
|
self.backgroundId = backgroundId
|
|
|
|
end
|
|
|
|
|
|
|
|
function menu.ShowBackgroundWidget:action()
|
|
|
|
self.scene:setBackground(self.backgroundId)
|
|
|
|
self.scene.menusystem:deactivate()
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
return menu
|