add unlockable mods
This commit is contained in:
Chris Danford
2005-03-29 01:44:36 +00:00
parent 2aab932973
commit 300d3fcd57
3 changed files with 95 additions and 54 deletions
+5 -5
View File
@@ -29,7 +29,7 @@ ScreenUnlock::ScreenUnlock( CString sClassName ) : ScreenAttract( sClassName )
{
LOG->Trace("ScreenUnlock::ScreenUnlock()");
unsigned NumUnlocks = UNLOCKMAN->m_SongEntries.size();
unsigned NumUnlocks = UNLOCKMAN->m_UnlockEntries.size();
if (!PREFSMAN->m_bUseUnlockSystem || NumUnlocks == 0)
{
@@ -42,7 +42,7 @@ void ScreenUnlock::Init()
{
ScreenAttract::Init();
unsigned NumUnlocks = UNLOCKMAN->m_SongEntries.size();
unsigned NumUnlocks = UNLOCKMAN->m_UnlockEntries.size();
PointsUntilNextUnlock.LoadFromFont( THEME->GetPathF("Common","normal") );
PointsUntilNextUnlock.SetHorizAlign( Actor::align_left );
@@ -51,7 +51,7 @@ void ScreenUnlock::Init()
for( unsigned i=1; i <= NumUnlocks; i++ )
{
// get pertaining UnlockEntry
CString SongTitle = UNLOCKMAN->m_SongEntries[i-1].m_sSongName;
CString SongTitle = UNLOCKMAN->m_UnlockEntries[i-1].m_sName;
LOG->Trace("UnlockScreen: Searching for %s", SongTitle.c_str());
const UnlockEntry *pSong = UNLOCKMAN->FindLockEntry( SongTitle );
@@ -101,7 +101,7 @@ void ScreenUnlock::Init()
for(unsigned i = 1; i <= NumUnlocks; i++)
{
CString DisplayedSong = UNLOCKMAN->m_SongEntries[i-1].m_sSongName;
CString DisplayedSong = UNLOCKMAN->m_UnlockEntries[i-1].m_sName;
DisplayedSong.MakeUpper();
const UnlockEntry *pSong = UNLOCKMAN->FindLockEntry(DisplayedSong);
@@ -232,7 +232,7 @@ void ScreenUnlock::Init()
unsigned NextIcon = LastUnlocks[LastUnlocks.size() - i];
CString DisplayedSong = UNLOCKMAN->m_SongEntries[NextIcon-1].m_sSongName;
CString DisplayedSong = UNLOCKMAN->m_UnlockEntries[NextIcon-1].m_sName;
DisplayedSong.MakeUpper();
const UnlockEntry *pSong = UNLOCKMAN->FindLockEntry(DisplayedSong);