Can now skip from group to group on ez2/pump song select using codes -- note; currently enters infinite loop if there is only 1 group and code entered -- will fix this later

This commit is contained in:
Andrew Livy
2003-09-07 22:03:23 +00:00
parent 9da20ccf14
commit 378f7a3a4a
5 changed files with 53 additions and 1 deletions
+8 -1
View File
@@ -47,7 +47,9 @@ const CString g_sCodeNames[CodeDetector::NUM_CODES] = {
"RandomVanish",
"CancelAll",
"NextTheme",
"NextAnnouncer"
"NextAnnouncer",
"NextBannerGroup",
"NextBannerGroup2"
};
const unsigned MAX_CODE_LENGTH = 10;
@@ -120,6 +122,11 @@ void CodeDetector::RefreshCacheItems()
RefreshCacheItem( i );
}
bool CodeDetector::EnteredNextBannerGroup( GameController controller )
{
return EnteredCode(controller,CODE_BW_NEXT_GROUP) || EnteredCode(controller,CODE_BW_NEXT_GROUP2);
}
bool CodeDetector::EnteredEasierDifficulty( GameController controller )
{
return EnteredCode(controller,CODE_EASIER1) || EnteredCode(controller,CODE_EASIER2);