From 86449bba80d625fa07a9408a033fd550f2f9021b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 21 Sep 2005 19:19:35 +0000 Subject: [PATCH] PageType is a whole-screen property, not per-page. Eliminates m_sprPageType hack (avoid loading stuff mid-screen). --- stepmania/src/ScreenRanking.cpp | 24 +++++------------------- stepmania/src/ScreenRanking.h | 1 - 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/stepmania/src/ScreenRanking.cpp b/stepmania/src/ScreenRanking.cpp index d807fb28fc..7eec0aba74 100644 --- a/stepmania/src/ScreenRanking.cpp +++ b/stepmania/src/ScreenRanking.cpp @@ -181,6 +181,9 @@ void ScreenRanking::Init() m_textStepsType.SetHidden( true ); this->AddChild( &m_textStepsType ); + m_sprPageType.Load( THEME->GetPathG(m_sName, "PageType "+PageTypeToString(m_PageType)) ); + m_sprPageType->SetName( "PageType" ); + this->AddChild( m_sprPageType ); for( int l=0; lGetCourseFromPath( asCoursePaths[c] ); @@ -320,7 +321,6 @@ void ScreenRanking::Init() for( unsigned i=0; iRemoveChild( m_sprPageType ); - m_sprPageType.Load( THEME->GetPathG(m_sName, "PageType "+PageTypeToString(pts.type)) ); - m_sprPageType->SetName( "PageType" ); - this->AddChild( m_sprPageType ); SET_XY_AND_ON_COMMAND( m_sprPageType ); for( int l=0; l