basic support for scrolling song list
This commit is contained in:
@@ -38,6 +38,7 @@ UnlockSystem::UnlockSystem()
|
|||||||
ToastyPoints = 0;
|
ToastyPoints = 0;
|
||||||
StagesCleared = 0;
|
StagesCleared = 0;
|
||||||
RouletteSeeds = "1";
|
RouletteSeeds = "1";
|
||||||
|
|
||||||
ReadValues("Data/MemCard.ini"); // in case its ever accessed,
|
ReadValues("Data/MemCard.ini"); // in case its ever accessed,
|
||||||
// we want the values to be available
|
// we want the values to be available
|
||||||
WriteValues("Data/MemCard.ini"); // create if it does not exist
|
WriteValues("Data/MemCard.ini"); // create if it does not exist
|
||||||
@@ -173,6 +174,8 @@ SongEntry::SongEntry()
|
|||||||
m_fToastysSeen = 0;
|
m_fToastysSeen = 0;
|
||||||
m_iRouletteSeed = 0;
|
m_iRouletteSeed = 0;
|
||||||
|
|
||||||
|
ActualSong = NULL;
|
||||||
|
|
||||||
isLocked = true;
|
isLocked = true;
|
||||||
isCourse = false;
|
isCourse = false;
|
||||||
}
|
}
|
||||||
@@ -241,7 +244,7 @@ bool UnlockSystem::LoadFromDATFile( CString sPath )
|
|||||||
}
|
}
|
||||||
|
|
||||||
int MaxRouletteSlot = 0;
|
int MaxRouletteSlot = 0;
|
||||||
unsigned i;
|
unsigned i, j;
|
||||||
|
|
||||||
for( i=0; i<msd.GetNumValues(); i++ )
|
for( i=0; i<msd.GetNumValues(); i++ )
|
||||||
{
|
{
|
||||||
@@ -268,7 +271,7 @@ bool UnlockSystem::LoadFromDATFile( CString sPath )
|
|||||||
CStringArray UnlockTypes;
|
CStringArray UnlockTypes;
|
||||||
split(sParams[2], ",", UnlockTypes);
|
split(sParams[2], ",", UnlockTypes);
|
||||||
|
|
||||||
for( unsigned j=0; j<UnlockTypes.size(); ++j )
|
for( j=0; j<UnlockTypes.size(); ++j )
|
||||||
{
|
{
|
||||||
CStringArray readparam;
|
CStringArray readparam;
|
||||||
|
|
||||||
@@ -300,6 +303,9 @@ bool UnlockSystem::LoadFromDATFile( CString sPath )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
current.updateLocked();
|
current.updateLocked();
|
||||||
|
|
||||||
|
current.ActualSong = SONGMAN->FindSong( "", current.m_sSongName );
|
||||||
|
|
||||||
m_SongEntries.push_back(current);
|
m_SongEntries.push_back(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -315,6 +321,8 @@ bool UnlockSystem::LoadFromDATFile( CString sPath )
|
|||||||
if (!m_SongEntries[i].isLocked) tmp = "un";
|
if (!m_SongEntries[i].isLocked) tmp = "un";
|
||||||
|
|
||||||
LOG->Trace( "UnlockSystem Entry %s", m_SongEntries[i].m_sSongName.c_str() );
|
LOG->Trace( "UnlockSystem Entry %s", m_SongEntries[i].m_sSongName.c_str() );
|
||||||
|
if (m_SongEntries[i].ActualSong != NULL)
|
||||||
|
LOG->Trace( " Translit %s", m_SongEntries[i].ActualSong->GetDisplayMainTitle().c_str() );
|
||||||
LOG->Trace( " AP %f", m_SongEntries[i].m_fArcadePointsRequired );
|
LOG->Trace( " AP %f", m_SongEntries[i].m_fArcadePointsRequired );
|
||||||
LOG->Trace( " DP %f", m_SongEntries[i].m_fDancePointsRequired );
|
LOG->Trace( " DP %f", m_SongEntries[i].m_fDancePointsRequired );
|
||||||
LOG->Trace( " SP %f", m_SongEntries[i].m_fSongPointsRequired );
|
LOG->Trace( " SP %f", m_SongEntries[i].m_fSongPointsRequired );
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ struct SongEntry
|
|||||||
song folders are named differantly, song names tend to
|
song folders are named differantly, song names tend to
|
||||||
be the same in the file.*/
|
be the same in the file.*/
|
||||||
|
|
||||||
|
Song* ActualSong; // pointer to actual song
|
||||||
|
|
||||||
float m_fDancePointsRequired; // Ways to unlock/lock songs.
|
float m_fDancePointsRequired; // Ways to unlock/lock songs.
|
||||||
float m_fArcadePointsRequired;
|
float m_fArcadePointsRequired;
|
||||||
float m_fSongPointsRequired;
|
float m_fSongPointsRequired;
|
||||||
|
|||||||
Reference in New Issue
Block a user