example/mainmenu: add a back button

This commit is contained in:
Kazhnuz 2019-04-07 13:01:02 +02:00
parent 713b93eaf9
commit a9fb455ec0

View file

@ -58,6 +58,7 @@ end
function MainMenu:addSubMenu(name, fullname) function MainMenu:addSubMenu(name, fullname)
self:addMenu(name) self:addMenu(name)
SubMenuWidget(self, "main", name, fullname) SubMenuWidget(self, "main", name, fullname)
SubMenuWidget(self, name, "main", "< Back")
end end
function MainMenu:addScene(submenu, scene, fullname) function MainMenu:addScene(submenu, scene, fullname)