don't load multiple copies of "common start" or "common invalid" sound

This commit is contained in:
Chris Danford
2004-05-01 23:28:53 +00:00
parent df5cd5e813
commit 6590bd2d48
39 changed files with 37 additions and 79 deletions
+6 -8
View File
@@ -147,8 +147,6 @@ EditCoursesMenu::EditCoursesMenu()
m_soundChangeRow.Load( THEME->GetPathToS("EditCoursesMenu row") );
m_soundChangeValue.Load( THEME->GetPathToS("EditCoursesMenu value") );
m_soundStart.Load( THEME->GetPathToS("Common start") );
m_soundInvalid.Load( THEME->GetPathToS("Common invalid") );
m_soundSave.Load( THEME->GetPathToS("EditCoursesMenu save") );
@@ -279,19 +277,19 @@ void EditCoursesMenu::Start()
SCREENMAN->SystemMessage( "Course saved." );
break;
case add_entry:
m_soundStart.Play();
SCREENMAN->PlayStartSound();
pCourse->m_entries.insert( pCourse->m_entries.begin()+m_iSelection[ROW_ENTRY], pCourse->m_entries[m_iSelection[ROW_ENTRY]] );
OnRowValueChanged( ROW_ENTRY );
break;
case delete_selected_entry:
if( pCourse->m_entries.size() == 1 )
{
m_soundInvalid.Play();
SCREENMAN->PlayInvalidSound();
SCREENMAN->SystemMessage( "Cannot delete the last entry from a course" );
break;
}
m_soundStart.Play();
SCREENMAN->PlayStartSound();
pCourse->m_entries.erase( pCourse->m_entries.begin()+m_iSelection[ROW_ENTRY] );
CLAMP( m_iSelection[ROW_ENTRY], 0, (int) pCourse->m_entries.size()-1 );
OnRowValueChanged( ROW_ENTRY );
@@ -391,7 +389,7 @@ void EditCoursesMenu::Start()
}
break;
case ROW_ENTRY_PLAYER_OPTIONS:
m_soundStart.Play();
SCREENMAN->PlayStartSound();
GAMESTATE->m_PlayerOptions[PLAYER_1] = PlayerOptions();
GAMESTATE->m_PlayerOptions[PLAYER_1].FromString( pEntry->modifiers );
@@ -399,7 +397,7 @@ void EditCoursesMenu::Start()
SCREENMAN->AddNewScreenToTop( "ScreenPlayerOptions", SM_BackFromPlayerOptions );
break;
case ROW_ENTRY_SONG_OPTIONS:
m_soundStart.Play();
SCREENMAN->PlayStartSound();
GAMESTATE->m_SongOptions = SongOptions();
GAMESTATE->m_SongOptions.FromString( pEntry->modifiers );
@@ -407,7 +405,7 @@ void EditCoursesMenu::Start()
SCREENMAN->AddNewScreenToTop( "ScreenSongOptions", SM_BackFromSongOptions );
break;
default:
m_soundInvalid.Play();
SCREENMAN->PlayInvalidSound();
return;
}
}
-2
View File
@@ -109,8 +109,6 @@ private:
RageSound m_soundChangeRow;
RageSound m_soundChangeValue;
RageSound m_soundStart;
RageSound m_soundInvalid;
RageSound m_soundSave;
};
+4 -5
View File
@@ -127,7 +127,6 @@ void MusicWheel::Load()
m_soundChangeMusic.Load( THEME->GetPathToS("MusicWheel change"), true );
m_soundChangeSort.Load( THEME->GetPathToS("MusicWheel sort") );
m_soundExpand.Load( THEME->GetPathToS("MusicWheel expand") );
m_soundStart.Load( THEME->GetPathToS("Common start") );
m_soundLocked.Load( THEME->GetPathToS("MusicWheel locked"), true );
@@ -1002,7 +1001,7 @@ void MusicWheel::Update( float fDeltaTime )
if( (GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage) || GAMESTATE->IsExtraStage2() )
{
m_WheelState = STATE_LOCKED;
m_soundStart.Play();
SCREENMAN->PlayStartSound();
m_fLockedWheelVelocity = 0;
}
else
@@ -1029,7 +1028,7 @@ void MusicWheel::Update( float fDeltaTime )
{
m_WheelState = STATE_LOCKED;
m_fTimeLeftInState = 0;
m_soundStart.Play();
SCREENMAN->PlayStartSound();
m_fLockedWheelVelocity = 0;
/* Send this again so the screen starts sample music. */
@@ -1236,7 +1235,7 @@ bool MusicWheel::Select() // return true if this selection ends the screen
{
m_fPositionOffsetFromSelection = max(m_fPositionOffsetFromSelection, 0.3f);
m_WheelState = STATE_LOCKED;
m_soundStart.Play();
SCREENMAN->PlayStartSound();
m_fLockedWheelVelocity = 0;
SCREENMAN->PostMessageToTopScreen( SM_SongChanged, 0 );
return false;
@@ -1324,7 +1323,7 @@ void MusicWheel::StartLeap()
m_iSelection = rand() % m_CurWheelItemData.size();
m_fPositionOffsetFromSelection = 0;
m_WheelState = STATE_SELECTING_MUSIC;
m_soundStart.Play();
SCREENMAN->PlayStartSound();
SCREENMAN->PostMessageToTopScreen( SM_SongChanged, 0 );
RebuildMusicWheelItems();
}
-1
View File
@@ -125,7 +125,6 @@ protected:
RageSound m_soundChangeMusic;
RageSound m_soundChangeSort;
RageSound m_soundExpand;
RageSound m_soundStart;
RageSound m_soundLocked;
bool WheelItemIsVisible(int n);
-2
View File
@@ -56,8 +56,6 @@ ScreenAttract::ScreenAttract( CString sName, bool bResetGameState ) : Screen( sN
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo(m_sName) );
m_soundStart.Load( THEME->GetPathToS("Common start") );
if( GAMESTATE->IsTimeToPlayAttractSounds() )
SOUND->PlayMusic( THEME->GetPathToS(m_sName + " music") );
else
-1
View File
@@ -34,7 +34,6 @@ protected:
BGAnimation m_Background;
Transition m_In;
Transition m_Out;
RandomSample m_soundStart;
};
+1 -1
View File
@@ -133,7 +133,7 @@ void ScreenCenterImage::Input( const DeviceInput& DeviceI, const InputEventType
case SDLK_KP_ENTER:
if(!IsTransitioning())
{
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
StartTransitioning( SM_GoToNextScreen );
}
}
+3 -3
View File
@@ -960,7 +960,7 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ
case SDLK_F5:
if( it==vSteps.begin() )
{
SOUND->PlayOnce( THEME->GetPathToS("Common invalid") );
SCREENMAN->PlayInvalidSound();
return;
}
it--;
@@ -969,7 +969,7 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ
it++;
if( it==vSteps.end() )
{
SOUND->PlayOnce( THEME->GetPathToS("Common invalid") );
SCREENMAN->PlayInvalidSound();
return;
}
break;
@@ -2144,7 +2144,7 @@ void ScreenEdit::HandleBGChangeChoice( BGChangeChoice c, int* iAnswers )
change.m_sBGName = "";
break;
default:
SOUND->PlayOnce( THEME->GetPathToS("Common invalid") );
SCREENMAN->PlayInvalidSound();
};
change.m_fRate = (float)atof( g_BGChange.rows[rate].choices[iAnswers[rate]] )/100.f;
+2 -3
View File
@@ -104,7 +104,6 @@ ScreenEz2SelectMusic::ScreenEz2SelectMusic( CString sName ) : ScreenWithMenuElem
m_soundButtonPress.Load( THEME->GetPathToS("ScreenEz2SelectMusic buttonpress"));
m_soundMusicChange.Load( THEME->GetPathToS("ScreenEz2SelectMusic change"));
m_soundMusicCycle.Load( THEME->GetPathToS("ScreenEz2SelectMusic cycle"));
m_soundSelect.Load( THEME->GetPathToS("Common start") );
m_ChoiceListFrame.Load( THEME->GetPathToG("ScreenEz2SelectMusic list frame"));
m_ChoiceListFrame.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y);
@@ -252,7 +251,7 @@ void ScreenEz2SelectMusic::Input( const DeviceInput& DeviceI, const InputEventTy
if( m_bMadeChoice && !m_bGoToOptions && MenuI.IsValid() && MenuI.button == MENU_BUTTON_START )
{
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
m_bGoToOptions = true;
m_sprOptionsMessage.SetState( 1 );
}
@@ -459,7 +458,7 @@ void ScreenEz2SelectMusic::MenuStart( PlayerNumber pn )
return;
}
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
if((PREVIEWMUSICMODE == 1 || PREVIEWMUSICMODE == 3) && iConfirmSelection == 0)
{
-3
View File
@@ -94,9 +94,6 @@ protected:
#endif
int iConfirmSelection;
RageSound m_soundSelect;
};
+1 -3
View File
@@ -90,8 +90,6 @@ ScreenEz2SelectPlayer::ScreenEz2SelectPlayer( CString sName ) : ScreenWithMenuEl
}
}
m_soundSelect.Load( THEME->GetPathToS("Common start") );
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo("select player intro") );
SOUND->PlayMusic( THEME->GetPathToS("ScreenSelectPlayer music") );
@@ -209,7 +207,7 @@ void ScreenEz2SelectPlayer::MenuStart( PlayerNumber pn )
GAMESTATE->m_bSideIsJoined[pn] = true;
SCREENMAN->RefreshCreditsMessages();
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
m_sprJoinMessage[pn].SetState( pn+NUM_PLAYERS );
if( FOLD_ON_JOIN )
-1
View File
@@ -33,6 +33,5 @@ private:
Sprite m_sprJoinMessage[NUM_PLAYERS];
Sprite m_sprJoinFrame[NUM_PLAYERS];
RageSound m_soundSelect;
BGAnimation m_Background;
};
+2 -4
View File
@@ -53,8 +53,6 @@ ScreenJukeboxMenu::ScreenJukeboxMenu( CString sClassName ) : ScreenWithMenuEleme
m_textExplanation.SetZoom( 0.7f );
this->AddChild( &m_textExplanation );
m_soundInvalid.Load( THEME->GetPathToS("Common invalid") );
SOUND->PlayMusic( THEME->GetPathToS("ScreenJukeboxMenu music") );
}
@@ -132,14 +130,14 @@ void ScreenJukeboxMenu::MenuStart( PlayerNumber pn )
{
/* No songs are available for the selected style, group, and difficulty. */
m_soundInvalid.Play();
SCREENMAN->PlayInvalidSound();
SCREENMAN->SystemMessage( "No songs available with these settings" );
return;
}
SOUND->StopMusic();
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
StartTransitioning( SM_GoToNextScreen );
}
-2
View File
@@ -36,8 +36,6 @@ private:
JukeboxMenu m_Selector;
BitmapText m_textExplanation;
RageSound m_soundInvalid;
};
+2 -2
View File
@@ -192,7 +192,7 @@ void ScreenMapControllers::Input( const DeviceInput& DeviceI, const InputEventTy
if ( DeviceI.device == DEVICE_KEYBOARD && (DeviceI.button >= SDLK_F1 && DeviceI.button <= SDLK_F12) )
{
m_textError.SetText( "That key can not be mapped." );
SOUND->PlayOnce( THEME->GetPathToS("Common invalid" ) );
SCREENMAN->PlayInvalidSound();
m_textError.StopTweening();
m_textError.SetDiffuse( RageColor(0,1,0,1) );
m_textError.BeginTweening( 3 );
@@ -263,7 +263,7 @@ void ScreenMapControllers::Input( const DeviceInput& DeviceI, const InputEventTy
case SDLK_ESCAPE: /* Quit the screen. */
if(!IsTransitioning())
{
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
StartTransitioning( SM_GoToNextScreen );
for( int b=0; b<GAMESTATE->GetCurrentGameDef()->m_iButtonsPerController; b++ )
m_Line[b].Command( (b%2)? ODD_LINE_OUT:EVEN_LINE_OUT );
+1 -1
View File
@@ -228,7 +228,7 @@ void ScreenMiniMenu::MenuStart( PlayerNumber pn, const InputEventType type )
m_Out.StartTransitioning( SM_GoToOK );
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
s_iLastLine = m_iCurLine;
COPY( s_iLastAnswers, m_iCurAnswers );
+1 -2
View File
@@ -102,7 +102,6 @@ ScreenOptions::ScreenOptions( CString sClassName ) : ScreenWithMenuElements(sCla
m_SoundChangeCol.Load( THEME->GetPathToS("ScreenOptions change"), true );
m_SoundNextRow.Load( THEME->GetPathToS("ScreenOptions next"), true );
m_SoundPrevRow.Load( THEME->GetPathToS("ScreenOptions prev"), true );
m_SoundStart.Load( THEME->GetPathToS("Common start") );
m_SoundToggleOn.Load( THEME->GetPathToS("ScreenOptions toggle on") );
m_SoundToggleOff.Load( THEME->GetPathToS("ScreenOptions toggle off") );
@@ -957,7 +956,7 @@ void ScreenOptions::HandleScreenMessage( const ScreenMessage SM )
return; /* already transitioning */
StartTransitioning( SM_GoToNextScreen );
m_SoundStart.Play();
SCREENMAN->PlayStartSound();
m_framePage.Command( FRAME_OFF_COMMAND );
break;
-1
View File
@@ -180,7 +180,6 @@ protected:
RageSound m_SoundChangeCol;
RageSound m_SoundNextRow;
RageSound m_SoundPrevRow;
RageSound m_SoundStart;
RageSound m_SoundToggleOn;
RageSound m_SoundToggleOff;
};
+2 -2
View File
@@ -193,7 +193,7 @@ void ScreenProfileOptions::MenuStart( PlayerNumber pn, const InputEventType type
const CString sName = GetSelectedProfileName();
if( sProfileID=="" )
SOUND->PlayOnce( THEME->GetPathToS("common invalid") );
SCREENMAN->PlayInvalidSound();
else
SCREENMAN->Prompt( SM_DoneDeleting, ssprintf("Delete profile %s '%s'?",sProfileID.c_str(),sName.c_str()), true );
break;
@@ -204,7 +204,7 @@ void ScreenProfileOptions::MenuStart( PlayerNumber pn, const InputEventType type
const CString sName = GetSelectedProfileName();
if( sProfileID=="" )
SOUND->PlayOnce( THEME->GetPathToS("common invalid") );
SCREENMAN->PlayInvalidSound();
else
SCREENMAN->TextEntry( SM_DoneRenaming, ssprintf("Rename profile %s '%s'",sProfileID.c_str(),sName.c_str()), sName, NULL );
break;
+1 -1
View File
@@ -174,7 +174,7 @@ void ScreenPrompt::MenuStart( PlayerNumber pn )
m_textAnswer[1].BeginTweening( 0.2f );
m_textAnswer[1].SetDiffuse( RageColor(1,1,1,0) );
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
if( m_bAnswer )
{
+1 -2
View File
@@ -150,7 +150,6 @@ ScreenSelectCharacter::ScreenSelectCharacter( CString sClassName ) : ScreenWithM
m_soundChange.Load( THEME->GetPathToS("ScreenSelectCharacter change") );
m_soundSelect.Load( THEME->GetPathToS("Common start") );
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo("select group intro") );
@@ -356,7 +355,7 @@ void ScreenSelectCharacter::MenuStart( PlayerNumber pn )
}
AfterRowChange(pn);
AfterValueChange(pn);
m_soundSelect.PlayRandom();
SCREENMAN->PlayStartSound();
bool bAllAreFinished = true;
for( int p=0; p<NUM_PLAYERS; p++ )
-1
View File
@@ -70,7 +70,6 @@ private:
Sprite m_sprExplanation;
RandomSample m_soundChange;
RandomSample m_soundSelect;
};
+2 -3
View File
@@ -130,7 +130,6 @@ ScreenSelectCourse::ScreenSelectCourse( CString sClassName ) : ScreenWithMenuEle
// this->AddChild( &m_sprOptionsMessage ); // draw and update manually
m_soundSelect.Load( THEME->GetPathToS("Common start") );
m_soundOptionsChange.Load( THEME->GetPathToS("ScreenSelectCourse options") );
m_soundChangeNotes.Load( THEME->GetPathToS("ScreenSelectCourse difficulty") );
@@ -248,7 +247,7 @@ void ScreenSelectCourse::Input( const DeviceInput& DeviceI, InputEventType type,
m_bGoToOptions = true;
m_sprOptionsMessage.SetState( 1 );
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
return;
}
@@ -338,7 +337,7 @@ void ScreenSelectCourse::MenuStart( PlayerNumber pn )
TweenOffScreen();
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
m_bMadeChoice = true;
-1
View File
@@ -57,7 +57,6 @@ protected:
bool m_bGoToOptions, m_bAllowOptionsMenuRepeat;
Sprite m_sprOptionsMessage;
RageSound m_soundSelect;
RageSound m_soundOptionsChange;
RageSound m_soundChangeNotes;
};
+1 -2
View File
@@ -116,7 +116,6 @@ ScreenSelectDifficulty::ScreenSelectDifficulty( CString sClassName ) : ScreenSel
this->AddChild( &m_framePages );
m_soundChange.Load( THEME->GetPathToS( m_sName + " change") );
m_soundSelect.Load( THEME->GetPathToS( "Common start") );
m_soundDifficult.Load( ANNOUNCER->GetPathTo("select difficulty challenge") );
m_fLockInputTime = LOCK_INPUT_SECONDS;
@@ -384,7 +383,7 @@ void ScreenSelectDifficulty::MenuStart( PlayerNumber pn )
if( bPlaySelect )
{
SOUND->PlayOnceFromAnnouncer( ssprintf("ScreenSelectDifficulty comment %s",mc.m_sName.c_str()) );
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
}
int p;
-1
View File
@@ -61,7 +61,6 @@ protected:
Sprite m_sprOK[NUM_PLAYERS];
RageSound m_soundChange;
RageSound m_soundSelect;
RandomSample m_soundDifficult;
vector<ModeChoice> m_ModeChoices[NUM_PAGES];
+1 -2
View File
@@ -149,7 +149,6 @@ ScreenSelectDifficultyEX::ScreenSelectDifficultyEX( CString sClassName ) : Scree
this->AddChild( &m_framePages );
m_soundChange.Load( THEME->GetPathToS( "ScreenSelectDifficulty change") );
m_soundSelect.Load( THEME->GetPathToS( "Common start") );
m_soundDifficult.Load( ANNOUNCER->GetPathTo("select difficulty challenge") );
m_fLockInputTime = LOCK_INPUT_SECONDS;
TweenOnScreen();
@@ -393,7 +392,7 @@ void ScreenSelectDifficultyEX::MenuStart( PlayerNumber pn )
}
}
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo(ssprintf("ScreenSelectDifficulty comment %s",mc.m_sName.c_str())) );
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
}
if( IsACourse( m_iChoice[pn] ) )
-1
View File
@@ -68,7 +68,6 @@ protected:
Sprite m_sprPicture[NUM_PLAYERS];
RageSound m_soundChange;
RageSound m_soundSelect;
RandomSample m_soundDifficult;
vector<ModeChoice> m_ModeChoices;
+1 -2
View File
@@ -135,7 +135,6 @@ ScreenSelectGroup::ScreenSelectGroup( CString sClassName ) : ScreenWithMenuEleme
m_soundChange.Load( THEME->GetPathToS("ScreenSelectGroup change") );
m_soundSelect.Load( THEME->GetPathToS("Common start") );
SOUND->PlayOnceFromAnnouncer( "select group intro" );
@@ -246,7 +245,7 @@ void ScreenSelectGroup::MenuStart( PlayerNumber pn )
if( m_bChosen )
return;
m_soundSelect.PlayRandom();
SCREENMAN->PlayStartSound();
m_MenuTimer->Stop();
m_bChosen = true;
-1
View File
@@ -51,7 +51,6 @@ private:
GroupList m_GroupList;
RandomSample m_soundChange;
RandomSample m_soundSelect;
bool m_bChosen;
};
+1 -2
View File
@@ -201,7 +201,6 @@ ScreenSelectMaster::ScreenSelectMaster( CString sClassName ) : ScreenSelect( sCl
}
m_soundChange.Load( THEME->GetPathToS( ssprintf("%s change", m_sName.c_str())), true );
m_soundSelect.Load( THEME->GetPathToS( "Common start") );
m_soundDifficult.Load( ANNOUNCER->GetPathTo("select difficulty challenge") );
// init m_Next order info
@@ -600,7 +599,7 @@ void ScreenSelectMaster::MenuStart( PlayerNumber pn )
ModeChoice &mc = m_aModeChoices[m_iChoice[pn]];
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo(ssprintf("%s comment %s",m_sName.c_str(), mc.m_sName.c_str())) );
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
float fSecs = 0;
bool bAllDone = true;
-1
View File
@@ -81,7 +81,6 @@ protected:
ActorScroller m_Scroller[NUM_PLAYERS];
RageSound m_soundChange;
RageSound m_soundSelect;
RandomSample m_soundDifficult;
int m_iChoice[NUM_PLAYERS];
+1 -2
View File
@@ -321,7 +321,6 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : ScreenWithMenuEleme
m_bgNoOptionsOut.Load( THEME->GetPathToB(m_sName+" no options out") );
// this->AddChild( &m_bgNoOptionsOut ); // drawn on top
m_soundSelect.Load( THEME->GetPathToS("Common start") );
m_soundDifficultyEasier.Load( THEME->GetPathToS("ScreenSelectMusic difficulty easier") );
m_soundDifficultyHarder.Load( THEME->GetPathToS("ScreenSelectMusic difficulty harder") );
m_soundOptionsChange.Load( THEME->GetPathToS("ScreenSelectMusic options") );
@@ -1104,7 +1103,7 @@ void ScreenSelectMusic::MenuStart( PlayerNumber pn )
if( m_bMadeChoice )
{
TweenOffScreen();
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
if( !GAMESTATE->IsExtraStage() && !GAMESTATE->IsExtraStage2() )
{
-1
View File
@@ -115,7 +115,6 @@ protected:
Transition m_bgOptionsOut;
Transition m_bgNoOptionsOut;
RageSound m_soundSelect;
RageSound m_soundDifficultyEasier;
RageSound m_soundDifficultyHarder;
RageSound m_soundOptionsChange;
+1 -2
View File
@@ -125,7 +125,6 @@ ScreenSelectStyle::ScreenSelectStyle( CString sClassName ) : ScreenSelect( sClas
m_soundChange.Load( THEME->GetPathToS(m_sName + " change") );
m_soundSelect.Load( THEME->GetPathToS("Common start") );
//
@@ -188,7 +187,7 @@ void ScreenSelectStyle::MenuRight( PlayerNumber pn )
void ScreenSelectStyle::MenuStart( PlayerNumber pn )
{
m_soundSelect.Play();
SCREENMAN->PlayStartSound();
SCREENMAN->SendMessageToTopScreen( SM_AllDoneChoosing );
const ModeChoice& mc = m_aModeChoices[GetSelectionIndex(pn)];
-1
View File
@@ -46,7 +46,6 @@ protected:
Sprite m_sprPremium;
RageSound m_soundChange;
RageSound m_soundSelect;
int m_iSelection;
};
+1 -1
View File
@@ -206,7 +206,7 @@ void ScreenTextEntry::MenuStart( PlayerNumber pn )
m_textAnswer.BeginTweening( 0.2f );
m_textAnswer.SetDiffuse( RageColor(1,1,1,0) );
SOUND->PlayOnce( THEME->GetPathToS("Common start") );
SCREENMAN->PlayStartSound();
if( m_bCancelled )
{
+1 -3
View File
@@ -173,8 +173,6 @@ ScreenTitleMenu::ScreenTitleMenu( CString sClassName ) : ScreenSelect( sClassNam
m_soundChange.Load( THEME->GetPathToS("ScreenTitleMenu change"),true );
m_soundSelect.Load( THEME->GetPathToS("Common start") );
m_soundInvalid.Load( THEME->GetPathToS("Common invalid") );
m_Choice = 0;
@@ -261,7 +259,7 @@ void ScreenTitleMenu::Input( const DeviceInput& DeviceI, const InputEventType ty
CString why;
if( !mc.IsPlayable( &why ) )
{
m_soundInvalid.Play();
SCREENMAN->PlayInvalidSound();
if( why != "" )
SCREENMAN->SystemMessage( why );
return;
-2
View File
@@ -47,8 +47,6 @@ private:
BitmapText m_textChoice[MAX_MODE_CHOICES];
RageSound m_soundChange;
RageSound m_soundSelect;
RageSound m_soundInvalid;
RageTimer TimeToDemonstration;