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, 16 insertions, 0 deletions
diff --git a/config/menuselect.lua b/config/menuselect.lua
new file mode 100644
index 0000000..1830f0d
--- /dev/null
+++ b/config/menuselect.lua
@@ -0,0 +1,16 @@
+local menu = ...
+
+local button = require "button"
+local selector = require "selector"
+
+local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
+
+return {
+ button:new(menu)
+ :setText("Go back")
+ :setPosition(10,height-25)
+ :set("active", function (self)
+ self.parent:load("menumain")
+ end)
+ ,
+} \ No newline at end of file