ScreenNameEntryTraditional invalid
This commit is contained in:
@@ -282,6 +282,7 @@ ScreenNameEntryTraditional::ScreenNameEntryTraditional( CString sClassName ) : S
|
|||||||
|
|
||||||
m_soundKey.Load( THEME->GetPathToS("ScreenNameEntryTraditional key") );
|
m_soundKey.Load( THEME->GetPathToS("ScreenNameEntryTraditional key") );
|
||||||
m_soundChange.Load( THEME->GetPathToS("ScreenNameEntryTraditional change",true) );
|
m_soundChange.Load( THEME->GetPathToS("ScreenNameEntryTraditional change",true) );
|
||||||
|
m_soundInvalid.Load( THEME->GetPathToS("ScreenNameEntryTraditional invalid",true) );
|
||||||
|
|
||||||
SOUND->PlayMusic( THEME->GetPathToS("ScreenNameEntryTraditional music") );
|
SOUND->PlayMusic( THEME->GetPathToS("ScreenNameEntryTraditional music") );
|
||||||
}
|
}
|
||||||
@@ -473,7 +474,7 @@ void ScreenNameEntryTraditional::MenuStart( PlayerNumber pn, const InputEventTyp
|
|||||||
case CHAR_BACK:
|
case CHAR_BACK:
|
||||||
if( !m_sSelection[pn].size() )
|
if( !m_sSelection[pn].size() )
|
||||||
{
|
{
|
||||||
/* XXX play invalid sound */
|
m_soundInvalid.Play();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -487,7 +488,7 @@ void ScreenNameEntryTraditional::MenuStart( PlayerNumber pn, const InputEventTyp
|
|||||||
/* If we have room, add a new character. */
|
/* If we have room, add a new character. */
|
||||||
if( (int) m_sSelection[pn].size() == MAX_RANKING_NAME_LENGTH )
|
if( (int) m_sSelection[pn].size() == MAX_RANKING_NAME_LENGTH )
|
||||||
{
|
{
|
||||||
/* XXX play invalid sound */
|
m_soundInvalid.Play();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
m_sSelection[pn] += wchar_t(SelectedLetter);
|
m_sSelection[pn] += wchar_t(SelectedLetter);
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ private:
|
|||||||
|
|
||||||
RageSound m_soundChange;
|
RageSound m_soundChange;
|
||||||
RageSound m_soundKey;
|
RageSound m_soundKey;
|
||||||
|
RageSound m_soundInvalid;
|
||||||
|
|
||||||
BitmapText m_textSelection[NUM_PLAYERS];
|
BitmapText m_textSelection[NUM_PLAYERS];
|
||||||
wstring m_sSelection[NUM_PLAYERS];
|
wstring m_sSelection[NUM_PLAYERS];
|
||||||
|
|||||||
Reference in New Issue
Block a user