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
+32
View File
@@ -280,6 +280,38 @@ void MusicBannerWheel::LoadSongData()
}
void MusicBannerWheel::ScanToNextGroup()
{
if(arraySongs.size() < 2)
return; // forget it -- no point groupscanning
int localPos = currentPos;
int startingPos = localPos;
Song* pSong;
pSong = arraySongs[currentPos];
CString currentGroupName = pSong->m_sGroupName;
localPos++;
while(localPos != startingPos)
{
if(localPos >= arraySongs.size()-1)
{
localPos = 0;
}
pSong = arraySongs[localPos];
if(currentGroupName != pSong->m_sGroupName)
{
break;
}
localPos++;
}
int iCount = 5;
currentPos = localPos-iCount;
while(iCount > 0)
{
BannersRight();
iCount--;
}
}
Song* MusicBannerWheel::GetSelectedSong()
{
Song* pSong;