diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-22 02:24:32 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-22 02:24:32 +0200 |
commit | 6e9aa28e70ec842db643a06609454fff54b5d86a (patch) | |
tree | 75aac8a30267f33f33fc808eda358f5b56af140c /config | |
parent | 43fa5953e4c9f226c2579097b3f42bd97bc587c4 (diff) | |
download | roflnauts-6e9aa28e70ec842db643a06609454fff54b5d86a.zip roflnauts-6e9aa28e70ec842db643a06609454fff54b5d86a.tar.gz roflnauts-6e9aa28e70ec842db643a06609454fff54b5d86a.tar.bz2 |
Werking!
Diffstat (limited to 'config')
-rw-r--r-- | config/menumain.lua | 29 | ||||
-rw-r--r-- | config/menustart.lua | 11 |
2 files changed, 39 insertions, 1 deletions
diff --git a/config/menumain.lua b/config/menumain.lua index a4374ad..7c8ddf9 100644 --- a/config/menumain.lua +++ b/config/menumain.lua @@ -1 +1,28 @@ -return {"Start", "Join", "Settings", "Credits", "Exit"}
\ No newline at end of file +local button = require "button" + +return { + button + :new("start") + :setPosition(10,40) + :set("active", function () + changeScene(Menu:new("menustart")) + end) + , + button + :new("join") + :setPosition(10,50) + , + button + :new("settings") + :setPosition(10,60) + , + button + :new("credits") + :setPosition(10,70) + , + button + :new("exit") + :setPosition(10,80) + :set("active", love.event.quit) + , +}
\ No newline at end of file diff --git a/config/menustart.lua b/config/menustart.lua new file mode 100644 index 0000000..03ca2f2 --- /dev/null +++ b/config/menustart.lua @@ -0,0 +1,11 @@ +local button = require "button" + +return { + button + :new("WORKED") + :setPosition(10,40) + :set("active", function () + changeScene(Menu:new("menumain")) + end) + , +}
\ No newline at end of file |