Add StepsTypeInfo and return the structure rather than having GameManager methods for each piece of data
This commit is contained in:
@@ -185,7 +185,8 @@ float ScreenRanking::SetPage( const PageToShow &pts )
|
||||
//
|
||||
// init page
|
||||
//
|
||||
m_textStepsType.SetText( GameManager::StepsTypeToLocalizedString(pts.aTypes.front().second) );
|
||||
StepsType st = pts.aTypes.front().second;
|
||||
m_textStepsType.SetText( GAMEMAN->GetStepsTypeInfo(st).GetLocalizedString() );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user