example/mainmenu: add a back button
This commit is contained in:
parent
713b93eaf9
commit
a9fb455ec0
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue