mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 18:39:45 +01:00
Fix a few options
This commit is contained in:
parent
07dfb6e313
commit
504208ec30
2 changed files with 12 additions and 2 deletions
|
@ -6827,7 +6827,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
auto_buttons = 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 + 16, 160, 12, loc::gettext("translucent room name bg"), offset, 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_menu_button(46 - 16, 200, 76, 26, loc::gettext("previous"), -2);
|
||||
touch::create_menu_button(122, 200, 76, 26, loc::gettext("return"), offset + 5);
|
||||
|
@ -6837,10 +6837,12 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
case Menu::graphicoptions:
|
||||
{
|
||||
int optionid = 4;
|
||||
int scalingid = 0;
|
||||
if (!gameScreen.isForcedFullscreen())
|
||||
{
|
||||
option(loc::gettext("toggle fullscreen"));
|
||||
optionid++;
|
||||
scalingid++;
|
||||
}
|
||||
option(loc::gettext("scaling mode"));
|
||||
if (!gameScreen.isForcedFullscreen())
|
||||
|
@ -6856,7 +6858,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ )
|
|||
maxspacing = 15;
|
||||
auto_buttons = false;
|
||||
|
||||
touch::create_menu_button((320 - 160) / 2, 120 - 32, 160, button_height, loc::gettext("scaling mode"), 1);
|
||||
touch::create_menu_button((320 - 160) / 2, 120 - 32, 160, button_height, loc::gettext("scaling mode"), scalingid);
|
||||
touch::create_toggle_button((320 - 160) / 2, 120 + 16, 160, 12, loc::gettext("filtered screen"), optionid - 3, gameScreen.isFiltered);
|
||||
touch::create_toggle_button((320 - 160) / 2, 120 + 32, 160, 12, loc::gettext("analogue mode"), optionid - 2, gameScreen.badSignalEffect);
|
||||
touch::create_toggle_button((320 - 160) / 2, 120 + 48, 160, 12, loc::gettext("vsync"), optionid - 1, gameScreen.vsync);
|
||||
|
|
|
@ -1100,6 +1100,14 @@ void menuactionpress(void)
|
|||
map.nexttowercolour();
|
||||
}
|
||||
|
||||
if (game.currentmenuoption == -3)
|
||||
{
|
||||
// For touch: toggle translucent roomname bg
|
||||
music.playef(Sound_VIRIDIAN);
|
||||
graphics.translucentroomname = !graphics.translucentroomname;
|
||||
game.savestatsandsettings_menu();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case Menu::options:
|
||||
|
|
Loading…
Reference in a new issue