summaryrefslogtreecommitdiffhomepage
path: root/config/menus/pause.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-14 21:54:46 +0200
committerAki <nthirtyone@gmail.com>2017-07-14 21:54:46 +0200
commit96fef88f56fdcdf95bc5783eb2b3b881ff435ba0 (patch)
treea07a06c784b1768b323e4bfd551676c1052e617f /config/menus/pause.lua
parent9af261cd204b999e6b2b5a44d5c5eb768f84c49d (diff)
downloadroflnauts-96fef88f56fdcdf95bc5783eb2b3b881ff435ba0.zip
roflnauts-96fef88f56fdcdf95bc5783eb2b3b881ff435ba0.tar.gz
roflnauts-96fef88f56fdcdf95bc5783eb2b3b881ff435ba0.tar.bz2
Background in menu moved to separate class
Weird noise added to menu configs to use single MenuBackground instance Initial pause menu added
Diffstat (limited to 'config/menus/pause.lua')
-rw-r--r--config/menus/pause.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/config/menus/pause.lua b/config/menus/pause.lua
new file mode 100644
index 0000000..74dd043
--- /dev/null
+++ b/config/menus/pause.lua
@@ -0,0 +1,19 @@
+local menu = ...
+
+local Button = require "not.Button"
+
+local width, height = love.graphics.getWidth()/getScale(), love.graphics.getHeight()/getScale()
+local bx = width/2-29
+
+return {
+ Button(menu)
+ :setText("Unpause")
+ :setPosition(bx, height - 36)
+ :set("active", function () end)
+ ,
+ Button(menu)
+ :setText("Exit")
+ :setPosition(bx, height - 20)
+ :set("active", function () end)
+ ,
+}