move GetDifficultyThemeName into SongManager
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user