mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
De-duplicate "secret lab" menu option in "play" menu
Instead of creating an entirely new menu for it, just dynamically add the Secret Lab menu option as needed.
This commit is contained in:
@@ -6939,19 +6939,27 @@ void Game::createmenu( std::string t )
|
||||
createmenu("unlockintermission");
|
||||
savemystats = true;
|
||||
}
|
||||
//ok, secret lab! no notification, but test:
|
||||
else if (unlock[8])
|
||||
{
|
||||
createmenu("playsecretlab");
|
||||
}
|
||||
else
|
||||
{
|
||||
option("continue");
|
||||
//ok, secret lab! no notification, but test:
|
||||
if (unlock[8])
|
||||
{
|
||||
option("secret lab");
|
||||
}
|
||||
option("play modes");
|
||||
option("new game");
|
||||
option("return");
|
||||
menuxoff = -20;
|
||||
menuyoff = -40;
|
||||
if (unlock[8])
|
||||
{
|
||||
menuxoff = -40;
|
||||
menuyoff = -30;
|
||||
}
|
||||
else
|
||||
{
|
||||
menuxoff = -20;
|
||||
menuyoff = -40;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6965,16 +6973,6 @@ void Game::createmenu( std::string t )
|
||||
menuxoff = 20;
|
||||
menuyoff = 70;
|
||||
}
|
||||
else if (t == "playsecretlab")
|
||||
{
|
||||
option("continue");
|
||||
option("secret lab");
|
||||
option("play modes");
|
||||
option("new game");
|
||||
option("return");
|
||||
menuxoff = -40;
|
||||
menuyoff = -30;
|
||||
}
|
||||
else if (t == "newgamewarning")
|
||||
{
|
||||
option("start new game");
|
||||
|
||||
Reference in New Issue
Block a user