mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -6945,7 +6945,7 @@ void Game::createmenu( std::string t )
|
|||||||
//ok, secret lab! no notification, but test:
|
//ok, secret lab! no notification, but test:
|
||||||
if (unlock[8])
|
if (unlock[8])
|
||||||
{
|
{
|
||||||
option("secret lab");
|
option("secret lab", !map.invincibility && game.slowdown == 30);
|
||||||
}
|
}
|
||||||
option("play modes");
|
option("play modes");
|
||||||
option("new game");
|
option("new game");
|
||||||
@@ -6982,9 +6982,9 @@ void Game::createmenu( std::string t )
|
|||||||
}
|
}
|
||||||
else if (t == "playmodes")
|
else if (t == "playmodes")
|
||||||
{
|
{
|
||||||
option("time trials");
|
option("time trials", !map.invincibility && game.slowdown == 30);
|
||||||
option("intermissions", unlock[16]);
|
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("flip mode", unlock[18]);
|
||||||
option("return to play menu");
|
option("return to play menu");
|
||||||
menuxoff = -70;
|
menuxoff = -70;
|
||||||
|
|||||||
Reference in New Issue
Block a user