mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
add menu option for checkpoint saving
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
8aec83daec
commit
e58fd606cf
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user