diff options
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 |