summaryrefslogtreecommitdiffhomepage
path: root/config
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
parentdd32c9c620918a3b0da59e42ff343cdd78a12a39 (diff)
downloadroflnauts-3aeabc496465cbd2569d9b0f5687242f374b4375.zip
roflnauts-3aeabc496465cbd2569d9b0f5687242f374b4375.tar.gz
roflnauts-3aeabc496465cbd2569d9b0f5687242f374b4375.tar.bz2
change elements not menu object
Diffstat (limited to 'config')
-rw-r--r--config/menumain.lua4
-rw-r--r--config/menustart.lua4
2 files changed, 4 insertions, 4 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)
diff --git a/config/menustart.lua b/config/menustart.lua
index 46015a9..2472df5 100644
--- a/config/menustart.lua
+++ b/config/menustart.lua
@@ -6,8 +6,8 @@ return {
button:new(menu)
:setText("Go back")
:setPosition(10,40)
- :set("active", function ()
- changeScene(Menu:new("menumain"))
+ :set("active", function (self)
+ self.parent:load("menumain")
end)
,
} \ No newline at end of file