1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-18 00:49:42 +01:00
VVVVVV/desktop_version/lang/fr
Misa 24ef59c65e Prevent other cases of losing unsaved levels by returning to menu
2.3 already made it so that if you ran the `rollcredits` command during
in-editor playtesting, you wouldn't be returned to the title screen
while losing unsaved level changes. But there are plenty of other ways
to go back to the title screen from in-editor playtesting too. Namely,
gamestate 1015 (the gamestate after completing a level) and 82 (time
trial complete).

So just add the appropriate checks to those gamestates, and add a
catch-all check in Game::quittomenu(). Additionally,
Game::updatecustomlevelstats() should not update custom level stats
during in-editor playtesting (otherwise it would still happen even if
the game didn't bring you back to the title screen).

Editor notes will also be shown if the game prevents you from going to
the title screen.

Also, just to make things clear, I also added a level note for when the
level is completed during in-editor playtesting. This is just to make it
clear in cases where it might not be obvious that the game returned you
to the editor for this reason. E.g. you have a terminal that calls
gamestate(1013) in a level with 0 custom crewmates, but when you
activate it, it looks like the terminal didn't work for some reason and
just brought you back to the editor. But that's just only because you
literally just completed the level.
2023-05-18 20:01:03 -07:00
..
cutscenes.xml Make Violet's button dialogue work in cutscene test 2023-03-22 16:20:44 -07:00
meta.xml Add button glyphs support to selection hint on language screen 2023-03-26 17:54:47 -07:00
numbers.xml Add new language files 2023-03-15 17:29:55 -07:00
roomnames.xml Add new language files 2023-03-15 17:29:55 -07:00
roomnames_special.xml Add new language files 2023-03-15 17:29:55 -07:00
strings.xml Prevent other cases of losing unsaved levels by returning to menu 2023-05-18 20:01:03 -07:00
strings_plural.xml Add new language files 2023-03-15 17:29:55 -07:00