ring/scenes/settings.lua

35 lines
786 B
Lua

local love = assert( love )
local strings = require( "i18n.en" )
local settings = require( "settings" )
local t = {}
local currentSetting
function t.keypressed( key, code, isRepeat )
end
function t.mousemoved()
end
function t.mousepressed()
end
function t.update()
end
function t.draw()
love.graphics.print( strings.toContinue, 0, love.graphics.getHeight() - love.graphics.getFont():getHeight() )
love.graphics.print( strings.settingsMenuTitle, 0, 0 )
for i, setting in ipairs( settings ) do
local x, y = 10, 10 + i * 100
love.graphics.rectangle( "line", x, y, love.graphics.getWidth(), 100 )
love.graphics.print( setting.name, x + 10, y )
love.graphics.print( setting.val, x + 10, y + 25 )
end
end
return t