diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/menumain.lua | 4 | ||||
-rw-r--r-- | config/menustart.lua | 4 |
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 |