epervier-old/examples/scenes/menus/options/menu.lua

14 lines
452 B
Lua
Raw Normal View History

2021-12-04 14:12:17 +01:00
local TextMenu = require "birb.modules.gui.textmenu"
local OptionMenu = TextMenu:extend()
2021-12-04 14:12:17 +01:00
local consts = require "scenes.menus.options.consts"
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