Rick Posted October 23, 2013 Share Posted October 23, 2013 I would propose a small change to App.lua to better quit the application: 1) In App:Start() add: self.quit = false 2) Add function: function App:ExitGame() self.quit = true end 3) Last line in App:Loop(): return not self.quit If the only way to exit the game is to return false from App:Loop() and today it has "return true" (hardcoded true) then we're forced to code a way to do this. The above example seems like it's a logical thing to do since in any script we can then call App:ExitGame() to quit. Quote Link to comment Share on other sites More sharing options...
Josh Posted October 23, 2013 Share Posted October 23, 2013 Would this be for a GUI script that handles game menus? App::ChangeMap() would be a good idea as well. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.