2020-08-19 23:25:36 +02:00
|
|
|
local RadianceListMenu = require "game.modules.menus.list"
|
2020-08-02 13:47:27 +02:00
|
|
|
|
2020-08-19 23:25:36 +02:00
|
|
|
local OptionMenu = RadianceListMenu.ListMenu:extend()
|
|
|
|
local WIDTH = 128+32
|
|
|
|
local ITEMNUMBER = 6
|
2020-08-01 16:32:09 +02:00
|
|
|
|
2020-08-19 23:25:36 +02:00
|
|
|
function OptionMenu:new(scene, name)
|
2020-08-28 00:26:12 +02:00
|
|
|
local w, h = math.floor(WIDTH), math.floor(16 * ITEMNUMBER)
|
2020-08-01 16:32:09 +02:00
|
|
|
local screenw, screenh = core.screen:getDimensions()
|
|
|
|
local x = (screenw/2) - (w/2)
|
|
|
|
local y = (screenh/2) - (h/2)
|
2020-08-19 23:25:36 +02:00
|
|
|
OptionMenu.super.new(self, scene, name, x, y, w, ITEMNUMBER, true)
|
2020-08-01 16:32:09 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return OptionMenu
|