mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Move some options to a new menu, "advanced options"
VVVVVV's menus are kind of packed to the brim, so I thought it was time
to recategorize the menus a little bit. There's now a new "advanced
options" menu which holds the following options which were moved out of
graphic options, game options and especially accessibility options:
- toggle mouse
- unfocus pause
- fake load screen
- room name background
- glitchrunner mode
I also made the positioning of the titles and descriptions more
consistent, and made some options which were moved to the new menu not
so abbreviated ("load screen" and "room name bg")
This commit is contained in:
@@ -351,31 +351,19 @@ void menuactionpress()
|
||||
game.currentmenuoption = 3;
|
||||
break;
|
||||
case 4:
|
||||
//toggle mouse cursor
|
||||
music.playef(11);
|
||||
if (graphics.showmousecursor == true) {
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
graphics.showmousecursor = false;
|
||||
}
|
||||
else {
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
graphics.showmousecursor = true;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
//toggle 30+ fps
|
||||
music.playef(11);
|
||||
game.over30mode = !game.over30mode;
|
||||
game.savestats();
|
||||
break;
|
||||
case 6:
|
||||
case 5:
|
||||
//toggle vsync
|
||||
music.playef(11);
|
||||
graphics.vsync = !graphics.vsync;
|
||||
graphics.processVsync();
|
||||
game.savestats();
|
||||
break;
|
||||
case 7:
|
||||
case 6:
|
||||
// resize to nearest multiple
|
||||
if (graphics.screenbuffer->isWindowed)
|
||||
{
|
||||
@@ -478,6 +466,49 @@ void menuactionpress()
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case Menu::advancedoptions:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
case 0:
|
||||
//toggle mouse cursor
|
||||
music.playef(11);
|
||||
if (graphics.showmousecursor == true) {
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
graphics.showmousecursor = false;
|
||||
}
|
||||
else {
|
||||
SDL_ShowCursor(SDL_ENABLE);
|
||||
graphics.showmousecursor = true;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
// toggle unfocus pause
|
||||
game.disablepause = !game.disablepause;
|
||||
music.playef(11);
|
||||
break;
|
||||
case 2:
|
||||
// toggle fake load screen
|
||||
game.skipfakeload = !game.skipfakeload;
|
||||
music.playef(11);
|
||||
break;
|
||||
case 3:
|
||||
// toggle translucent roomname BG
|
||||
graphics.translucentroomname = !graphics.translucentroomname;
|
||||
music.playef(11);
|
||||
break;
|
||||
case 4:
|
||||
// Glitchrunner mode
|
||||
music.playef(11);
|
||||
game.glitchrunnermode = !game.glitchrunnermode;
|
||||
break;
|
||||
case 5:
|
||||
//back
|
||||
music.playef(11);
|
||||
game.returnmenu();
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case Menu::accessibility:
|
||||
switch (game.currentmenuoption)
|
||||
{
|
||||
@@ -543,21 +574,6 @@ void menuactionpress()
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
// toggle unfocus pause
|
||||
game.disablepause = !game.disablepause;
|
||||
music.playef(11);
|
||||
break;
|
||||
case 6:
|
||||
// toggle fake load screen
|
||||
game.skipfakeload = !game.skipfakeload;
|
||||
music.playef(11);
|
||||
break;
|
||||
case 7:
|
||||
// toggle translucent roomname BG
|
||||
graphics.translucentroomname = !graphics.translucentroomname;
|
||||
music.playef(11);
|
||||
break;
|
||||
case 8:
|
||||
//back
|
||||
music.playef(11);
|
||||
game.returnmenu();
|
||||
@@ -596,9 +612,10 @@ void menuactionpress()
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
case 1:
|
||||
// Glitchrunner mode
|
||||
//advanced options
|
||||
music.playef(11);
|
||||
game.glitchrunnermode = !game.glitchrunnermode;
|
||||
game.createmenu(Menu::advancedoptions);
|
||||
map.nexttowercolour();
|
||||
break;
|
||||
case 2:
|
||||
#if !defined(MAKEANDPLAY)
|
||||
|
||||
Reference in New Issue
Block a user