Add on-screen graphics elements to represent non-joined players on music select screen
This commit is contained in:
@@ -254,6 +254,7 @@ void ModeChoice::Apply( PlayerNumber pn ) const
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
const PlayMode OldPlayMode = GAMESTATE->m_PlayMode;
|
const PlayMode OldPlayMode = GAMESTATE->m_PlayMode;
|
||||||
|
|
||||||
if( m_game != GAME_INVALID )
|
if( m_game != GAME_INVALID )
|
||||||
GAMESTATE->m_CurGame = m_game;
|
GAMESTATE->m_CurGame = m_game;
|
||||||
if( m_pm != PLAY_MODE_INVALID )
|
if( m_pm != PLAY_MODE_INVALID )
|
||||||
@@ -309,6 +310,7 @@ void ModeChoice::Apply( PlayerNumber pn ) const
|
|||||||
{
|
{
|
||||||
MEMCARDMAN->LockCards( true );
|
MEMCARDMAN->LockCards( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModeChoice::IsZero() const
|
bool ModeChoice::IsZero() const
|
||||||
|
|||||||
@@ -689,7 +689,7 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
|
|||||||
for( unsigned i=0; i<g_vPlayedStageStats.size(); i++ )
|
for( unsigned i=0; i<g_vPlayedStageStats.size(); i++ )
|
||||||
iTotalScore += g_vPlayedStageStats[i].iScore[p];
|
iTotalScore += g_vPlayedStageStats[i].iScore[p];
|
||||||
|
|
||||||
iTotalScore += stageStats.iScore[p];
|
//iTotalScore += stageStats.iScore[p];
|
||||||
|
|
||||||
m_textTotalScore[p].LoadFromNumbers( THEME->GetPathToN("ScreenEvaluation totalscore") );
|
m_textTotalScore[p].LoadFromNumbers( THEME->GetPathToN("ScreenEvaluation totalscore") );
|
||||||
m_textTotalScore[p].EnableShadow( false );
|
m_textTotalScore[p].EnableShadow( false );
|
||||||
|
|||||||
@@ -302,6 +302,17 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : Screen( sClassName
|
|||||||
m_sprOptionsMessage.SetDiffuse( RageColor(1,1,1,0) ); // invisible
|
m_sprOptionsMessage.SetDiffuse( RageColor(1,1,1,0) ); // invisible
|
||||||
//this->AddChild( &m_sprOptionsMessage ); // we have to draw this manually over the top of transitions
|
//this->AddChild( &m_sprOptionsMessage ); // we have to draw this manually over the top of transitions
|
||||||
|
|
||||||
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
|
{
|
||||||
|
if( !GAMESTATE->IsPlayerEnabled( p ))
|
||||||
|
{
|
||||||
|
m_sprNonPresence[p].SetName( ssprintf("NonPresenceP%d",p+1) );
|
||||||
|
m_sprNonPresence[p].Load( THEME->GetPathToG(ssprintf("ScreenSelectMusic nonpresence p%d",p+1)) );
|
||||||
|
SET_XY( m_sprNonPresence[p] );
|
||||||
|
this->AddChild( &m_sprNonPresence[p] );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_bgOverlay.SetName( "BGAOverlay");
|
m_bgOverlay.SetName( "BGAOverlay");
|
||||||
m_bgOverlay.LoadFromAniDir( THEME->GetPathToB("ScreenSelectMusic Overlay"));
|
m_bgOverlay.LoadFromAniDir( THEME->GetPathToB("ScreenSelectMusic Overlay"));
|
||||||
this->AddChild( &m_bgOverlay );
|
this->AddChild( &m_bgOverlay );
|
||||||
@@ -372,6 +383,13 @@ void ScreenSelectMusic::TweenSongPartsOnScreen( bool Initial )
|
|||||||
ON_COMMAND( m_DifficultyIcon[p] );
|
ON_COMMAND( m_DifficultyIcon[p] );
|
||||||
ON_COMMAND( m_AutoGenIcon[p] );
|
ON_COMMAND( m_AutoGenIcon[p] );
|
||||||
}
|
}
|
||||||
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
|
{
|
||||||
|
if( !GAMESTATE->IsPlayerEnabled( p ))
|
||||||
|
{
|
||||||
|
ON_COMMAND( m_sprNonPresence[p] );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSelectMusic::TweenSongPartsOffScreen( bool Final )
|
void ScreenSelectMusic::TweenSongPartsOffScreen( bool Final )
|
||||||
@@ -399,6 +417,13 @@ void ScreenSelectMusic::TweenSongPartsOffScreen( bool Final )
|
|||||||
OFF_COMMAND( m_DifficultyIcon[p] );
|
OFF_COMMAND( m_DifficultyIcon[p] );
|
||||||
OFF_COMMAND( m_AutoGenIcon[p] );
|
OFF_COMMAND( m_AutoGenIcon[p] );
|
||||||
}
|
}
|
||||||
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
|
{
|
||||||
|
if( !GAMESTATE->IsPlayerEnabled( p ))
|
||||||
|
{
|
||||||
|
OFF_COMMAND( m_sprNonPresence[p] );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSelectMusic::TweenCoursePartsOnScreen( bool Initial )
|
void ScreenSelectMusic::TweenCoursePartsOnScreen( bool Initial )
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ protected:
|
|||||||
BitmapText m_textSongOptions;
|
BitmapText m_textSongOptions;
|
||||||
OptionIconRow m_OptionIconRow[NUM_PLAYERS];
|
OptionIconRow m_OptionIconRow[NUM_PLAYERS];
|
||||||
Sprite m_sprMeterFrame[NUM_PLAYERS];
|
Sprite m_sprMeterFrame[NUM_PLAYERS];
|
||||||
|
Sprite m_sprNonPresence[NUM_PLAYERS];
|
||||||
DifficultyMeter m_DifficultyMeter[NUM_PLAYERS];
|
DifficultyMeter m_DifficultyMeter[NUM_PLAYERS];
|
||||||
MusicSortDisplay m_MusicSortDisplay;
|
MusicSortDisplay m_MusicSortDisplay;
|
||||||
Sprite m_sprHighScoreFrame[NUM_PLAYERS];
|
Sprite m_sprHighScoreFrame[NUM_PLAYERS];
|
||||||
|
|||||||
Reference in New Issue
Block a user