move GetDifficultyThemeName into SongManager

This commit is contained in:
Glenn Maynard
2003-11-16 19:07:52 +00:00
parent 1b7a2717d5
commit 6353d9a007
4 changed files with 23 additions and 24 deletions
+20 -1
View File
@@ -864,7 +864,13 @@ RageColor SongManager::GetSongColor( const Song* pSong )
return GetGroupColor( pSong->m_sGroupName );
}
RageColor SongManager::GetDifficultyColor( Difficulty dc )
#define BEGINNER_DESCRIPTION THEME->GetMetric ("Common","Beginner")
#define EASY_DESCRIPTION THEME->GetMetric ("Common","Easy")
#define MEDIUM_DESCRIPTION THEME->GetMetric ("Common","Medium")
#define HARD_DESCRIPTION THEME->GetMetric ("Common","Hard")
#define CHALLENGE_DESCRIPTION THEME->GetMetric ("Common","Challenge")
RageColor SongManager::GetDifficultyColor( Difficulty dc ) const
{
switch( dc )
{
@@ -877,6 +883,19 @@ RageColor SongManager::GetDifficultyColor( Difficulty dc )
}
}
CString SongManager::GetDifficultyThemeName( const CString &in ) const
{
switch( StringToDifficulty(in) )
{
case DIFFICULTY_BEGINNER: return BEGINNER_DESCRIPTION;
case DIFFICULTY_EASY: return EASY_DESCRIPTION;
case DIFFICULTY_MEDIUM: return MEDIUM_DESCRIPTION;
case DIFFICULTY_HARD: return HARD_DESCRIPTION;
case DIFFICULTY_CHALLENGE: return CHALLENGE_DESCRIPTION;
default: return in; // something else
}
}
void SongManager::GetSongs( vector<Song*> &AddTo, CString sGroupName, int iMaxStages ) const
{
AddTo.clear();