diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-24 19:03:40 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-24 19:03:40 +0200 |
commit | b19ec990880a3f2529ac8a7833337a0984094a23 (patch) | |
tree | f42de7665e906a498034608bbb6282b17113144d /config/menuhost.lua | |
parent | 2abd5e31214a14f7e090fe81985ddf2aeac32112 (diff) | |
download | roflnauts-b19ec990880a3f2529ac8a7833337a0984094a23.zip roflnauts-b19ec990880a3f2529ac8a7833337a0984094a23.tar.gz roflnauts-b19ec990880a3f2529ac8a7833337a0984094a23.tar.bz2 |
Autostart+new menu
Diffstat (limited to 'config/menuhost.lua')
-rw-r--r-- | config/menuhost.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/menuhost.lua b/config/menuhost.lua new file mode 100644 index 0000000..3ad10db --- /dev/null +++ b/config/menuhost.lua @@ -0,0 +1,24 @@ +local menu = ... + +local button = require "button" +local selector = require "selector" + +local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale() +local bx = width/2-29 + +return { + button:new(menu) + :setText("Select") + :setPosition(bx,101) + :set("active", function (self) + self.parent:load("menuselect") + end) + , + button:new(menu) + :setText("Go back") + :setPosition(bx,117) + :set("active", function (self) + self.parent:load("menumain") + end) + , +}
\ No newline at end of file |