2021-12-04 14:12:17 +01:00
|
|
|
local TextMenu = require "birb.modules.gui.textmenu"
|
2021-01-30 09:19:37 +01:00
|
|
|
local OptionMenu = TextMenu:extend()
|
|
|
|
|
2021-12-04 14:12:17 +01:00
|
|
|
local consts = require "scenes.menus.options.consts"
|
2021-01-30 09:19:37 +01:00
|
|
|
|
|
|
|
function OptionMenu:new(font)
|
|
|
|
local screenWidth, _ = core.screen:getDimensions()
|
|
|
|
local w = screenWidth - (consts.BORDERS_W*2)
|
|
|
|
local x = consts.BORDERS_W
|
|
|
|
local y = consts.BORDERS_H
|
|
|
|
OptionMenu.super.new(self, consts.OPTION_MENU, font, x, y, w, consts.NBR_ELEMS, 8)
|
|
|
|
end
|
|
|
|
|
|
|
|
return OptionMenu
|