summaryrefslogtreecommitdiffhomepage
path: root/config/menuselect.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/menuselect.lua')
-rw-r--r--config/menuselect.lua16
1 files changed, 13 insertions, 3 deletions
diff --git a/config/menuselect.lua b/config/menuselect.lua
index ffdda7f..8d646ba 100644
--- a/config/menuselect.lua
+++ b/config/menuselect.lua
@@ -4,10 +4,13 @@ local button = require "button"
local selector = require "selector"
local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
+local bx = width/2-29
+
+local naut_selector = selector:new(menu)
return {
- selector:new(menu)
- :setPosition(width/2,10)
+ naut_selector
+ :setPosition(width/2,60)
:setMargin(8)
:setSize(32, 32)
:set("list", require "nautslist")
@@ -17,8 +20,15 @@ return {
:init()
,
button:new(menu)
+ :setText("Force start")
+ :setPosition(bx,101)
+ :set("active", function (self)
+ changeScene(World:new(nil,naut_selector:getFullSelection(false)))
+ end)
+ ,
+ button:new(menu)
:setText("Go back")
- :setPosition(10,height-25)
+ :setPosition(bx,117)
:set("active", function (self)
self.parent:load("menumain")
end)