XToThemedString -> XToLocalizedString
This commit is contained in:
@@ -30,7 +30,7 @@ CString GetStatsLineTitle( PlayerNumber pn, EndingStatsLine line )
|
||||
case PERCENT_COMPLETE:
|
||||
{
|
||||
StepsType st = GAMESTATE->GetCurrentStyle()->m_StepsType;
|
||||
CString sStepsType = GAMEMAN->StepsTypeToThemedString(st);
|
||||
CString sStepsType = GAMEMAN->StepsTypeToLocalizedString(st);
|
||||
CString sType = GAMESTATE->IsCourseMode() ? "Courses" : "Songs";
|
||||
return ssprintf( "%s %s %%", sStepsType.c_str(), sType.c_str() );
|
||||
}
|
||||
@@ -42,16 +42,16 @@ CString GetStatsLineTitle( PlayerNumber pn, EndingStatsLine line )
|
||||
if( GAMESTATE->IsCourseMode() )
|
||||
{
|
||||
CourseDifficulty cd = (CourseDifficulty)(DIFFICULTY_EASY+line-PERCENT_COMPLETE_EASY);
|
||||
ASSERT( cd >= 0 && cd < NUM_COURSE_DIFFICULTIES );
|
||||
ASSERT( cd >= 0 && cd < NUM_CourseDifficulty );
|
||||
if( !GAMESTATE->IsCourseDifficultyShown(cd) )
|
||||
return CString();
|
||||
return CourseDifficultyToThemedString(cd);
|
||||
return CourseDifficultyToLocalizedString(cd);
|
||||
}
|
||||
else
|
||||
{
|
||||
Difficulty dc = (Difficulty)(DIFFICULTY_EASY+line-PERCENT_COMPLETE_EASY);
|
||||
ASSERT( dc >= 0 && dc < NUM_DIFFICULTIES );
|
||||
return DifficultyToThemedString(dc);
|
||||
ASSERT( dc >= 0 && dc < NUM_Difficulty );
|
||||
return DifficultyToLocalizedString(dc);
|
||||
}
|
||||
}
|
||||
default: ASSERT(0); return CString();
|
||||
@@ -101,22 +101,22 @@ CString GetStatsLineValue( PlayerNumber pn, EndingStatsLine line )
|
||||
case PERCENT_COMPLETE_CHALLENGE:
|
||||
// Ugly...
|
||||
{
|
||||
CString sStepsType = GAMEMAN->StepsTypeToThemedString(st);
|
||||
CString sStepsType = GAMEMAN->StepsTypeToLocalizedString(st);
|
||||
float fPercent = 0;
|
||||
if( GAMESTATE->IsCourseMode() )
|
||||
{
|
||||
CourseDifficulty cd = (CourseDifficulty)(DIFFICULTY_EASY+line-PERCENT_COMPLETE_EASY);
|
||||
ASSERT( cd >= 0 && cd < NUM_COURSE_DIFFICULTIES );
|
||||
ASSERT( cd >= 0 && cd < NUM_CourseDifficulty );
|
||||
if( !GAMESTATE->IsCourseDifficultyShown(cd) )
|
||||
return CString();
|
||||
CString sDifficulty = CourseDifficultyToThemedString(cd);
|
||||
CString sDifficulty = CourseDifficultyToLocalizedString(cd);
|
||||
fPercent = pProfile->GetCoursesPercentComplete(st,cd);
|
||||
}
|
||||
else
|
||||
{
|
||||
Difficulty dc = (Difficulty)(DIFFICULTY_EASY+line-PERCENT_COMPLETE_EASY);
|
||||
ASSERT( dc >= 0 && dc < NUM_DIFFICULTIES );
|
||||
CString sDifficulty = DifficultyToThemedString(dc);
|
||||
ASSERT( dc >= 0 && dc < NUM_Difficulty );
|
||||
CString sDifficulty = DifficultyToLocalizedString(dc);
|
||||
fPercent = pProfile->GetSongsPercentComplete(st,dc);
|
||||
}
|
||||
return ssprintf( "%05.2f%%", fPercent*100 );
|
||||
|
||||
Reference in New Issue
Block a user