summaryrefslogtreecommitdiffhomepage
path: root/config/menumain.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-22 17:23:18 +0200
committerAki <nthirtyone@gmail.com>2016-08-22 17:23:18 +0200
commit3aeabc496465cbd2569d9b0f5687242f374b4375 (patch)
tree7b6c1d6aeeb214c677a6859a0fec9105cd76862c /config/menumain.lua
parentdd32c9c620918a3b0da59e42ff343cdd78a12a39 (diff)
downloadroflnauts-3aeabc496465cbd2569d9b0f5687242f374b4375.zip
roflnauts-3aeabc496465cbd2569d9b0f5687242f374b4375.tar.gz
roflnauts-3aeabc496465cbd2569d9b0f5687242f374b4375.tar.bz2
change elements not menu object
Diffstat (limited to 'config/menumain.lua')
-rw-r--r--config/menumain.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/menumain.lua b/config/menumain.lua
index 543a858..def1ab7 100644
--- a/config/menumain.lua
+++ b/config/menumain.lua
@@ -9,8 +9,8 @@ return {
button:new(menu)
:setText("start")
:setPosition(button_x,60)
- :set("active", function ()
- changeScene(Menu:new("menustart"))
+ :set("active", function (self)
+ self.parent:load("menustart")
end)
,
button:new(menu)