summaryrefslogtreecommitdiffhomepage
path: root/config/menumain.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-24 13:29:13 +0200
committerAki <nthirtyone@gmail.com>2016-08-24 13:29:13 +0200
commit1213e1e2831805ebb5d193702e02c59c2927e54a (patch)
tree933f01e03005a21c6a634d9aed9b8f0b7021a352 /config/menumain.lua
parent78cf905ac5fa190dbd8a84678330a0479747c0e7 (diff)
downloadroflnauts-1213e1e2831805ebb5d193702e02c59c2927e54a.zip
roflnauts-1213e1e2831805ebb5d193702e02c59c2927e54a.tar.gz
roflnauts-1213e1e2831805ebb5d193702e02c59c2927e54a.tar.bz2
Almost the same functionality
Diffstat (limited to 'config/menumain.lua')
-rw-r--r--config/menumain.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/menumain.lua b/config/menumain.lua
index 2d92817..cb53714 100644
--- a/config/menumain.lua
+++ b/config/menumain.lua
@@ -5,31 +5,31 @@ local header = require "header"
local element = require "element"
local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
-local button_x = width/2-29
+local bx = width/2-29
return {
button:new(menu)
:setText("Start")
- :setPosition(button_x, 80)
+ :setPosition(bx, 80)
:set("active", function (self)
self.parent:load("menuselect")
end)
,
button:new(menu)
:setText("Join")
- :setPosition(button_x, 96)
+ :setPosition(bx, 96)
,
button:new(menu)
:setText("Settings")
- :setPosition(button_x, 112)
+ :setPosition(bx, 112)
,
button:new(menu)
:setText("Credits")
- :setPosition(button_x, 128)
+ :setPosition(bx, 128)
,
button:new(menu)
:setText("Exit")
- :setPosition(button_x, 144)
+ :setPosition(bx, 144)
:set("active", love.event.quit)
,
element:new(menu)