[ScreenGameplay] Added SongNumberFormat metric.
This commit is contained in:
@@ -19,6 +19,7 @@ sm-ssc v1.2.5 | 201104??
|
||||
* [LifeMeterBattery] Convert Frame to an AutoActor. [AJ]
|
||||
* [ScreenEvaluation] Added RollingNumbersClass metric, allowing for the ability
|
||||
to change which RollingNumbers class is loaded. [AJ]
|
||||
* [ScreenGameplay] Added SongNumberFormat metric. [AJ]
|
||||
|
||||
20110420
|
||||
--------
|
||||
|
||||
@@ -3192,6 +3192,7 @@ DebugX=SCREEN_CENTER_X
|
||||
DebugY=SCREEN_BOTTOM-72
|
||||
DebugOnCommand=zoom,0.75
|
||||
#
|
||||
SongNumberFormat="%d"
|
||||
SongNumberP1X=THEME:GetMetric(Var "LoadingScreen","PlayerP1OnePlayerOneSideX") - 60
|
||||
SongNumberP1Y=SCREEN_TOP+24+7
|
||||
SongNumberP1OnCommand=visible,false
|
||||
|
||||
@@ -588,6 +588,7 @@ void ScreenGameplay::Init()
|
||||
if( GAMESTATE->IsCourseMode() )
|
||||
{
|
||||
ASSERT( pi->m_ptextCourseSongNumber == NULL );
|
||||
SONG_NUMBER_FORMAT.Load( m_sName, "SongNumberFormat" );
|
||||
pi->m_ptextCourseSongNumber = new BitmapText;
|
||||
pi->m_ptextCourseSongNumber->LoadFromFont( THEME->GetPathF(m_sName,"SongNum") );
|
||||
pi->m_ptextCourseSongNumber->SetName( ssprintf("SongNumber%s",pi->GetName().c_str()) );
|
||||
@@ -1011,7 +1012,7 @@ void ScreenGameplay::LoadNextSong()
|
||||
{
|
||||
pi->GetPlayerStageStats()->m_iSongsPlayed++;
|
||||
if( pi->m_ptextCourseSongNumber )
|
||||
pi->m_ptextCourseSongNumber->SetText( ssprintf("%d", pi->GetPlayerStageStats()->m_iSongsPassed+1) );
|
||||
pi->m_ptextCourseSongNumber->SetText( ssprintf(SONG_NUMBER_FORMAT.GetValue(), pi->GetPlayerStageStats()->m_iSongsPassed+1) );
|
||||
}
|
||||
|
||||
if( GAMESTATE->m_bMultiplayer )
|
||||
|
||||
@@ -193,6 +193,7 @@ protected:
|
||||
ThemeMetric<int> FAIL_ON_MISS_COMBO;
|
||||
ThemeMetric<bool> ALLOW_CENTER_1_PLAYER;
|
||||
ThemeMetric<bool> UNPAUSE_WITH_START;
|
||||
ThemeMetric<RString> SONG_NUMBER_FORMAT;
|
||||
|
||||
bool IsLastSong();
|
||||
void SetupSong( int iSongIndex );
|
||||
|
||||
Reference in New Issue
Block a user