1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Add checkpoint saving option to touch controls

This commit is contained in:
NyakoFox 2024-09-29 17:20:43 -03:00
parent 9f9c813835
commit 30abc8a64b
2 changed files with 8 additions and 0 deletions

View file

@ -6833,6 +6833,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
touch::create_toggle_button((320 - 160) / 2, 120 - 32, 160, 12, loc::gettext("limit to 30 fps"), offset, !over30mode); touch::create_toggle_button((320 - 160) / 2, 120 - 32, 160, 12, loc::gettext("limit to 30 fps"), offset, !over30mode);
touch::create_toggle_button((320 - 160) / 2, 120 - 32 + 16, 160, 12, loc::gettext("translucent room name bg"), -3, graphics.translucentroomname); touch::create_toggle_button((320 - 160) / 2, 120 - 32 + 16, 160, 12, loc::gettext("translucent room name bg"), -3, graphics.translucentroomname);
touch::create_toggle_button((320 - 160) / 2, 120 - 32 + 32, 160, 12, loc::gettext("checkpoint saving"), -4, checkpoint_saving);
touch::create_menu_button(46 - 16, 200, 76, 26, loc::gettext("previous"), -2); touch::create_menu_button(46 - 16, 200, 76, 26, loc::gettext("previous"), -2);
touch::create_menu_button(122, 200, 76, 26, loc::gettext("return"), offset + 5); touch::create_menu_button(122, 200, 76, 26, loc::gettext("return"), offset + 5);

View file

@ -1107,6 +1107,13 @@ void menuactionpress(void)
graphics.translucentroomname = !graphics.translucentroomname; graphics.translucentroomname = !graphics.translucentroomname;
game.savestatsandsettings_menu(); game.savestatsandsettings_menu();
} }
if (game.currentmenuoption == -4)
{
// For touch: toggle checkpoint saving
music.playef(Sound_VIRIDIAN);
game.checkpoint_saving = !game.checkpoint_saving;
game.savestatsandsettings_menu();
}
break; break;
} }