From e58fd606cff3cfe25bcdc97f31d2fb4de851eb35 Mon Sep 17 00:00:00 2001 From: NyakoFox Date: Thu, 26 Sep 2024 13:20:18 -0300 Subject: [PATCH] add menu option for checkpoint saving --- desktop_version/lang/ar/strings.xml | 5 +++++ desktop_version/lang/ca/strings.xml | 5 +++++ desktop_version/lang/cy/strings.xml | 5 +++++ desktop_version/lang/de/strings.xml | 5 +++++ desktop_version/lang/en/strings.xml | 5 +++++ desktop_version/lang/eo/strings.xml | 5 +++++ desktop_version/lang/es/strings.xml | 5 +++++ desktop_version/lang/es_419/strings.xml | 5 +++++ desktop_version/lang/es_AR/strings.xml | 5 +++++ desktop_version/lang/fr/strings.xml | 5 +++++ desktop_version/lang/ga/strings.xml | 5 +++++ desktop_version/lang/it/strings.xml | 5 +++++ desktop_version/lang/ja/strings.xml | 5 +++++ desktop_version/lang/ko/strings.xml | 5 +++++ desktop_version/lang/nl/strings.xml | 5 +++++ desktop_version/lang/pl/strings.xml | 5 +++++ desktop_version/lang/pt_BR/strings.xml | 5 +++++ desktop_version/lang/pt_PT/strings.xml | 5 +++++ desktop_version/lang/ru/strings.xml | 5 +++++ desktop_version/lang/szl/strings.xml | 5 +++++ desktop_version/lang/tr/strings.xml | 5 +++++ desktop_version/lang/uk/strings.xml | 5 +++++ desktop_version/lang/zh/strings.xml | 5 +++++ desktop_version/lang/zh_TW/strings.xml | 5 +++++ desktop_version/src/Game.cpp | 1 + desktop_version/src/Input.cpp | 6 ++++++ desktop_version/src/Render.cpp | 16 ++++++++++++++++ 27 files changed, 143 insertions(+) diff --git a/desktop_version/lang/ar/strings.xml b/desktop_version/lang/ar/strings.xml index 3788d484..7c192c43 100644 --- a/desktop_version/lang/ar/strings.xml +++ b/desktop_version/lang/ar/strings.xml @@ -236,6 +236,11 @@ + + + + + + + + + + diff --git a/desktop_version/lang/cy/strings.xml b/desktop_version/lang/cy/strings.xml index 3db5fbab..90b23913 100644 --- a/desktop_version/lang/cy/strings.xml +++ b/desktop_version/lang/cy/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/de/strings.xml b/desktop_version/lang/de/strings.xml index d08033a4..e869c9db 100644 --- a/desktop_version/lang/de/strings.xml +++ b/desktop_version/lang/de/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/en/strings.xml b/desktop_version/lang/en/strings.xml index 5ce4803b..ee3db7b6 100644 --- a/desktop_version/lang/en/strings.xml +++ b/desktop_version/lang/en/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/eo/strings.xml b/desktop_version/lang/eo/strings.xml index 4884154b..63fcd003 100644 --- a/desktop_version/lang/eo/strings.xml +++ b/desktop_version/lang/eo/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/es/strings.xml b/desktop_version/lang/es/strings.xml index 493b2b1e..c2cfae35 100644 --- a/desktop_version/lang/es/strings.xml +++ b/desktop_version/lang/es/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/es_419/strings.xml b/desktop_version/lang/es_419/strings.xml index ea50cfc3..ea6a1cf9 100644 --- a/desktop_version/lang/es_419/strings.xml +++ b/desktop_version/lang/es_419/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/es_AR/strings.xml b/desktop_version/lang/es_AR/strings.xml index ff360450..e9bf98b1 100644 --- a/desktop_version/lang/es_AR/strings.xml +++ b/desktop_version/lang/es_AR/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/fr/strings.xml b/desktop_version/lang/fr/strings.xml index f074c748..b7f69dc4 100644 --- a/desktop_version/lang/fr/strings.xml +++ b/desktop_version/lang/fr/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/ga/strings.xml b/desktop_version/lang/ga/strings.xml index 07168eb3..bb19ca2c 100644 --- a/desktop_version/lang/ga/strings.xml +++ b/desktop_version/lang/ga/strings.xml @@ -233,6 +233,11 @@ Déan cóip chúltaca, ar eagla na heagla." explanation="translation maintenance + + + + + diff --git a/desktop_version/lang/it/strings.xml b/desktop_version/lang/it/strings.xml index ca6cf2b3..4a3c32f3 100644 --- a/desktop_version/lang/it/strings.xml +++ b/desktop_version/lang/it/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/ja/strings.xml b/desktop_version/lang/ja/strings.xml index b1cdf6ac..0586db9e 100644 --- a/desktop_version/lang/ja/strings.xml +++ b/desktop_version/lang/ja/strings.xml @@ -246,6 +246,11 @@ Escキーを押すと表示を終了する。" explanation="" max="38*6" max_loc + + + + + diff --git a/desktop_version/lang/ko/strings.xml b/desktop_version/lang/ko/strings.xml index 443fc638..10ff2981 100755 --- a/desktop_version/lang/ko/strings.xml +++ b/desktop_version/lang/ko/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/nl/strings.xml b/desktop_version/lang/nl/strings.xml index 10935c08..09a551ae 100644 --- a/desktop_version/lang/nl/strings.xml +++ b/desktop_version/lang/nl/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/pl/strings.xml b/desktop_version/lang/pl/strings.xml index 5a41019d..c88a28fa 100644 --- a/desktop_version/lang/pl/strings.xml +++ b/desktop_version/lang/pl/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/pt_BR/strings.xml b/desktop_version/lang/pt_BR/strings.xml index 7d361b27..dd5d677b 100644 --- a/desktop_version/lang/pt_BR/strings.xml +++ b/desktop_version/lang/pt_BR/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/pt_PT/strings.xml b/desktop_version/lang/pt_PT/strings.xml index 76b74963..51ca859b 100644 --- a/desktop_version/lang/pt_PT/strings.xml +++ b/desktop_version/lang/pt_PT/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/ru/strings.xml b/desktop_version/lang/ru/strings.xml index c09caf4b..3b310c88 100644 --- a/desktop_version/lang/ru/strings.xml +++ b/desktop_version/lang/ru/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/szl/strings.xml b/desktop_version/lang/szl/strings.xml index 688ad9f8..38640252 100644 --- a/desktop_version/lang/szl/strings.xml +++ b/desktop_version/lang/szl/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/tr/strings.xml b/desktop_version/lang/tr/strings.xml index 681feb6d..cd98037d 100644 --- a/desktop_version/lang/tr/strings.xml +++ b/desktop_version/lang/tr/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/uk/strings.xml b/desktop_version/lang/uk/strings.xml index fb6ae76d..33c6fa97 100644 --- a/desktop_version/lang/uk/strings.xml +++ b/desktop_version/lang/uk/strings.xml @@ -232,6 +232,11 @@ + + + + + diff --git a/desktop_version/lang/zh/strings.xml b/desktop_version/lang/zh/strings.xml index 403405d7..a9b83ef0 100644 --- a/desktop_version/lang/zh/strings.xml +++ b/desktop_version/lang/zh/strings.xml @@ -238,6 +238,11 @@ + + + + + diff --git a/desktop_version/lang/zh_TW/strings.xml b/desktop_version/lang/zh_TW/strings.xml index d78acc4b..9d58c94e 100644 --- a/desktop_version/lang/zh_TW/strings.xml +++ b/desktop_version/lang/zh_TW/strings.xml @@ -238,6 +238,11 @@ + + + + + diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index f01bc034..fb80f66b 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -6868,6 +6868,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ ) option(loc::gettext("unfocus pause")); option(loc::gettext("unfocus audio pause")); option(loc::gettext("room name background")); + option(loc::gettext("checkpoint saving")); option(loc::gettext("return")); menuyoff = 0; maxspacing = 15; diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 468c265a..c00f7362 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -862,6 +862,12 @@ static void menuactionpress(void) game.savestatsandsettings_menu(); music.playef(Sound_VIRIDIAN); break; + case 3: + // toggle checkpoint saving + game.checkpoint_saving = !game.checkpoint_saving; + game.savestatsandsettings_menu(); + music.playef(Sound_VIRIDIAN); + break; default: //back music.playef(Sound_VIRIDIAN); diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 20efc8ff..9b22bd89 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1139,6 +1139,7 @@ static void menurender(void) break; } case 2: + { font::print(PR_2X | PR_CEN, -1, 30, loc::gettext("Room Name BG"), tr, tg, tb); int next_y = font::print_wrap(PR_CEN, -1, 65, loc::gettext("Lets you see through what is behind the name at the bottom of the screen."), tr, tg, tb); if (graphics.translucentroomname) @@ -1147,6 +1148,21 @@ static void menurender(void) font::print_wrap(PR_CEN, -1, next_y, loc::gettext("Room name background is OPAQUE"), tr, tg, tb); break; } + case 3: + { + font::print(PR_2X | PR_CEN, -1, 30, loc::gettext("Checkpoint Saving"), tr, tg, tb); + int next_y = font::print_wrap(PR_CEN, -1, 65, loc::gettext("Toggle if checkpoints should save the game."), tr, tg, tb); + if (game.checkpoint_saving) + { + font::print_wrap(PR_CEN, -1, next_y, loc::gettext("Checkpoint saving is OFF"), tr / 2, tg / 2, tb / 2); + } + else + { + font::print_wrap(PR_CEN, -1, next_y, loc::gettext("Checkpoint saving is ON"), tr, tg, tb); + } + break; + } + } break; case Menu::accessibility: {