From 9b8f5e3d356be281d8ef25227b087bb99b07b58d Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 23 Aug 2016 19:24:06 +0200 Subject: start > select --- config/menumain.lua | 2 +- config/menuselect.lua | 16 ++++++++++++++++ config/menustart.lua | 16 ---------------- 3 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 config/menuselect.lua delete mode 100644 config/menustart.lua diff --git a/config/menumain.lua b/config/menumain.lua index f442c8d..2d92817 100644 --- a/config/menumain.lua +++ b/config/menumain.lua @@ -12,7 +12,7 @@ return { :setText("Start") :setPosition(button_x, 80) :set("active", function (self) - self.parent:load("menustart") + self.parent:load("menuselect") end) , button:new(menu) 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 diff --git a/config/menustart.lua b/config/menustart.lua deleted file mode 100644 index 1830f0d..0000000 --- a/config/menustart.lua +++ /dev/null @@ -1,16 +0,0 @@ -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 -- cgit v1.1