summaryrefslogtreecommitdiffhomepage
path: root/config/menumain.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-04-09 22:07:04 +0200
committerAki <nthirtyone@gmail.com>2017-04-09 22:07:04 +0200
commit0dd01913fe0eefc7ba4bc0797877f40fdedf9315 (patch)
tree8d270eb07f589d2487b3ce66d4865e5a4718042a /config/menumain.lua
parent55b0cf1a22e4a7e41fe00aa693445d6c4bd0652d (diff)
parenta03c1125f10fbbad253a0efc4727072fcbd55345 (diff)
downloadroflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.zip
roflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.tar.gz
roflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.tar.bz2
Merge branch 'com'
Diffstat (limited to 'config/menumain.lua')
-rw-r--r--config/menumain.lua59
1 files changed, 0 insertions, 59 deletions
diff --git a/config/menumain.lua b/config/menumain.lua
deleted file mode 100644
index 50b3d56..0000000
--- a/config/menumain.lua
+++ /dev/null
@@ -1,59 +0,0 @@
-local menu = ...
-
-local button = require "button"
-local header = require "header"
-local element = require "element"
-
-local width, height = love.graphics.getWidth()/getScale(), love.graphics.getHeight()/getScale()
-local bx = width/2-29
-
-local awesometwo = love.graphics.newImage("assets/two.png")
-
-return {
- button:new(menu)
- :setText("Start")
- :setPosition(bx, 80)
- :set("active", function (self)
- self.parent:load("menuhost")
- end)
- ,
- button:new(menu)
- :setText("Join")
- :setPosition(bx, 96)
- :set("isEnabled", function (self)
- return false
- end)
- ,
- button:new(menu)
- :setText("Settings")
- :setPosition(bx, 112)
- :set("active", function (self)
- self.parent:load("menusettings")
- end)
- ,
- button:new(menu)
- :setText("Credits")
- :setPosition(bx, 128)
- :set("active", function (self)
- self.parent:load("menucredits")
- end)
- ,
- button:new(menu)
- :setText("Exit")
- :setPosition(bx, 144)
- :set("active", love.event.quit)
- ,
- element:new(menu)
- :setPosition(width/2, 15)
- :set("draw", function (self, scale)
- local x,y = self:getPosition()
- love.graphics.setColor(255, 255, 255, 255)
- love.graphics.setFont(Bold)
- love.graphics.draw(awesometwo, x*scale, y*scale, 0, scale, scale, 35)
- end)
- ,
- header:new(menu)
- :setText("Roflnauts")
- :setPosition(width/2,40)
- ,
-} \ No newline at end of file