706468dad6
Fixes #87
15 lines
468 B
Lua
15 lines
468 B
Lua
local RadianceListMenu = require "game.modules.menus.list"
|
|
|
|
local OptionMenu = RadianceListMenu.ListMenu:extend()
|
|
local WIDTH = 128+108
|
|
local ITEMNUMBER = 6
|
|
|
|
function OptionMenu:new(scene, name)
|
|
local w, h = math.floor(WIDTH), math.floor(16 * ITEMNUMBER)
|
|
local screenw, screenh = core.screen:getDimensions()
|
|
local x = (screenw/2) - (w/2)
|
|
local y = (screenh/2) - (h/2)
|
|
OptionMenu.super.new(self, scene, name, x, y, w, ITEMNUMBER, true)
|
|
end
|
|
|
|
return OptionMenu
|