Make continue button load _quicksave if autosave not active#4758
Make continue button load _quicksave if autosave not active#4758sturnclaw merged 1 commit intopioneerspacesim:masterfrom
Conversation
|
In #4760 it was pointed out that the code from Some questions/thoughts about this:
Opinions? |
I think @johnbartholomew did some work on the save/load menu in the past, perhaps he's interested in voicing concerns about this. |
| end | ||
|
|
||
| local function canContinue() | ||
| if Game.CanLoadGame('_exit') or Game.CanLoadGame('_quicksave') then |
There was a problem hiding this comment.
While I'd prefer you use idiomatic lua (see below), this style doesn't have any major problems and can be easily refactored later. Please do keep in mind for the future that there are much more elegant and simple ways to express a construct like this, though!
return Game.CanLoadGame('_exit') or Game.CanLoadGame('_quicksave')There was a problem hiding this comment.
Thanks for the hint! Reminds me that I still need to learn lua properly :)
Simple additional feature for the continue button in main menu:
This added functionality could be handy whenever you are not using autosave.
In fact I did not use it for quite some time :)