Browse Source

feat(exemple): add a transition when a scene is selected

master
Kazhnuz 3 months ago
parent
commit
84919719f8
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      examples/mainmenu/init.lua

+ 1
- 0
examples/mainmenu/init.lua View File

@@ -130,6 +130,7 @@ end

function SceneWidget:action()
core.scenemanager:storeCurrentScene("mainmenu")
core.scenemanager:prepareTransition()
self.newscene(self.args[1], self.args[2], self.args[3], self.args[4], self.args[5])
end


Loading…
Cancel
Save