[ScreenRanking] Cleanup and un-hardcode shadowlength

This commit is contained in:
AJ Kelly
2010-08-15 16:06:13 -05:00
parent 597a782be9
commit 0a1793c289
+2 -4
View File
@@ -70,7 +70,7 @@ void ScreenRanking::Init()
{ {
m_textCategory.SetName( "Category" ); m_textCategory.SetName( "Category" );
m_textCategory.LoadFromFont( THEME->GetPathF(m_sName,"category") ); m_textCategory.LoadFromFont( THEME->GetPathF(m_sName,"category") );
m_textCategory.SetShadowLength( 0 ); //m_textCategory.SetShadowLength( 0 );
this->AddChild( &m_textCategory ); this->AddChild( &m_textCategory );
LOAD_ALL_COMMANDS( m_textCategory ); LOAD_ALL_COMMANDS( m_textCategory );
@@ -96,7 +96,7 @@ void ScreenRanking::Init()
m_textCourseTitle.SetName( "CourseTitle" ); m_textCourseTitle.SetName( "CourseTitle" );
m_textCourseTitle.LoadFromFont( THEME->GetPathF(m_sName,"course title") ); m_textCourseTitle.LoadFromFont( THEME->GetPathF(m_sName,"course title") );
m_textCourseTitle.SetShadowLength( 0 ); //m_textCourseTitle.SetShadowLength( 0 );
this->AddChild( &m_textCourseTitle ); this->AddChild( &m_textCourseTitle );
LOAD_ALL_COMMANDS( m_textCourseTitle ); LOAD_ALL_COMMANDS( m_textCourseTitle );
@@ -202,9 +202,7 @@ float ScreenRanking::SetPage( const PageToShow &pts )
// So, zero the next update so we don't skip. // So, zero the next update so we don't skip.
SCREENMAN->ZeroNextUpdate(); SCREENMAN->ZeroNextUpdate();
//
// init page // init page
//
StepsType st = pts.aTypes.front().second; StepsType st = pts.aTypes.front().second;
m_textStepsType.SetText( GAMEMAN->GetStepsTypeInfo(st).GetLocalizedString() ); m_textStepsType.SetText( GAMEMAN->GetStepsTypeInfo(st).GetLocalizedString() );