Play name entry music.

This commit is contained in:
Steve Checkoway
2006-10-16 09:31:28 +00:00
parent ea383df3e1
commit 156322028e
2 changed files with 14 additions and 1 deletions
+11 -1
View File
@@ -255,10 +255,20 @@ void ScreenNameEntry::Init()
this->SortByDrawOrder();
m_soundStep.Load( THEME->GetPathS("ScreenNameEntry","step") );
m_sPathToMusic = THEME->GetPathS( m_sName, "music" );
m_fFakeBeat = 0;
}
void ScreenNameEntry::BeginScreen()
{
SOUND->PlayMusic( m_sPathToMusic );
}
void ScreenNameEntry::EndScreen()
{
SOUND->StopMusic();
}
bool ScreenNameEntry::AnyStillEntering() const
{
FOREACH_PlayerNumber( p )
+3
View File
@@ -23,6 +23,8 @@ public:
virtual void HandleScreenMessage( const ScreenMessage SM );
virtual void MenuStart( const InputEventPlus &input );
virtual void BeginScreen();
virtual void EndScreen();
enum { ABS_MAX_RANKING_NAME_LENGTH = 10 };
private:
@@ -44,6 +46,7 @@ private:
bool m_bStillEnteringName[NUM_PLAYERS];
vector<int> m_ColToStringIndex[NUM_PLAYERS];
RString m_sPathToMusic;
};
#endif