Play name entry music.
This commit is contained in:
@@ -255,10 +255,20 @@ void ScreenNameEntry::Init()
|
|||||||
this->SortByDrawOrder();
|
this->SortByDrawOrder();
|
||||||
|
|
||||||
m_soundStep.Load( THEME->GetPathS("ScreenNameEntry","step") );
|
m_soundStep.Load( THEME->GetPathS("ScreenNameEntry","step") );
|
||||||
|
m_sPathToMusic = THEME->GetPathS( m_sName, "music" );
|
||||||
m_fFakeBeat = 0;
|
m_fFakeBeat = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScreenNameEntry::BeginScreen()
|
||||||
|
{
|
||||||
|
SOUND->PlayMusic( m_sPathToMusic );
|
||||||
|
}
|
||||||
|
|
||||||
|
void ScreenNameEntry::EndScreen()
|
||||||
|
{
|
||||||
|
SOUND->StopMusic();
|
||||||
|
}
|
||||||
|
|
||||||
bool ScreenNameEntry::AnyStillEntering() const
|
bool ScreenNameEntry::AnyStillEntering() const
|
||||||
{
|
{
|
||||||
FOREACH_PlayerNumber( p )
|
FOREACH_PlayerNumber( p )
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ public:
|
|||||||
virtual void HandleScreenMessage( const ScreenMessage SM );
|
virtual void HandleScreenMessage( const ScreenMessage SM );
|
||||||
|
|
||||||
virtual void MenuStart( const InputEventPlus &input );
|
virtual void MenuStart( const InputEventPlus &input );
|
||||||
|
virtual void BeginScreen();
|
||||||
|
virtual void EndScreen();
|
||||||
|
|
||||||
enum { ABS_MAX_RANKING_NAME_LENGTH = 10 };
|
enum { ABS_MAX_RANKING_NAME_LENGTH = 10 };
|
||||||
private:
|
private:
|
||||||
@@ -44,6 +46,7 @@ private:
|
|||||||
bool m_bStillEnteringName[NUM_PLAYERS];
|
bool m_bStillEnteringName[NUM_PLAYERS];
|
||||||
|
|
||||||
vector<int> m_ColToStringIndex[NUM_PLAYERS];
|
vector<int> m_ColToStringIndex[NUM_PLAYERS];
|
||||||
|
RString m_sPathToMusic;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user