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/menumain.lua | |
parent | 43fa5953e4c9f226c2579097b3f42bd97bc587c4 (diff) | |
download | roflnauts-6e9aa28e70ec842db643a06609454fff54b5d86a.zip roflnauts-6e9aa28e70ec842db643a06609454fff54b5d86a.tar.gz roflnauts-6e9aa28e70ec842db643a06609454fff54b5d86a.tar.bz2 |
Werking!
Diffstat (limited to 'config/menumain.lua')
-rw-r--r-- | config/menumain.lua | 29 |
1 files changed, 28 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 |