sonic-radiance/sonic-radiance.love/scenes/options/menu.lua

15 lines
441 B
Lua
Raw Normal View History

local ListBox = require "core.modules.menusystem.listbox"
local OptionMenu = ListBox:extend()
local WIDTH = 424/1.4
local HEIGHT = 240/1.4
function OptionMenu:new(menusystem, name)
local w, h = math.floor(WIDTH), math.floor(HEIGHT)
local screenw, screenh = core.screen:getDimensions()
local x = (screenw/2) - (w/2)
local y = (screenh/2) - (h/2)
OptionMenu.super.new(self, menusystem, name, x, y, w, h, 8)
end
return OptionMenu