From c10b79d2f514434d5633ec3ec3c64da9277b96d6 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 1 May 2008 08:33:28 +0000 Subject: [PATCH] add disqualified display --- stepmania/src/ScreenEvaluation.cpp | 9 +++++++++ stepmania/src/ScreenEvaluation.h | 1 + 2 files changed, 10 insertions(+) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index e99c309930..10036dc308 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -334,6 +334,15 @@ void ScreenEvaluation::Init() this->AddChild( &m_textPlayerOptions[p] ); } } + + FOREACH_EnabledPlayer( p ) + { + m_sprDisqualified[p].Load( THEME->GetPathG(m_sName,"Disqualified") ); + m_sprDisqualified[p]->SetName( ssprintf("DisqualifiedP%d",p+1) ); + LOAD_ALL_COMMANDS_AND_SET_XY( m_sprDisqualified[p] ); + m_sprDisqualified[p]->SetVisible( m_pStageStats->m_player[p].m_bDisqualified ); + this->AddChild( m_sprDisqualified[p] ); + } } // diff --git a/stepmania/src/ScreenEvaluation.h b/stepmania/src/ScreenEvaluation.h index 04acd0b681..4d5538e64d 100644 --- a/stepmania/src/ScreenEvaluation.h +++ b/stepmania/src/ScreenEvaluation.h @@ -64,6 +64,7 @@ protected: Banner m_LargeBanner; AutoActor m_sprLargeBannerFrame; BitmapText m_textPlayerOptions[NUM_PLAYERS]; + AutoActor m_sprDisqualified[NUM_PLAYERS]; Banner m_SmallBanner[MAX_SONGS_TO_SHOW]; AutoActor m_sprSmallBannerFrame[MAX_SONGS_TO_SHOW];