1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00

Gray out play modes if disabled due to enabled accessibility options

If you have invincibility mode or slowdown enabled, the game will not
let you select the Secret Lab, Time Trials, or No Death Mode. To make
this clearer, this commit grays out said options if they are disabled
for that reason.
This commit is contained in:
Misa 2020-04-15 20:33:04 -07:00 committed by Ethan Lee
parent 38d749f536
commit cbd7ef94ba

View File

@ -6945,7 +6945,7 @@ void Game::createmenu( std::string t )
//ok, secret lab! no notification, but test:
if (unlock[8])
{
option("secret lab");
option("secret lab", !map.invincibility && game.slowdown == 30);
}
option("play modes");
option("new game");
@ -6982,9 +6982,9 @@ void Game::createmenu( std::string t )
}
else if (t == "playmodes")
{
option("time trials");
option("time trials", !map.invincibility && game.slowdown == 30);
option("intermissions", unlock[16]);
option("no death mode", unlock[17]);
option("no death mode", unlock[17] && !map.invincibility && game.slowdown == 30);
option("flip mode", unlock[18]);
option("return to play menu");
menuxoff = -70;