own sound instead of PlayOnce

This commit is contained in:
Chris Danford
2005-03-18 21:51:30 +00:00
parent 9cad331c2a
commit cfd4a03110
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -95,6 +95,8 @@ void ScreenPrompt::Init()
m_Out.Load( THEME->GetPathB("ScreenPrompt","out") );
this->AddChild( &m_Out );
m_sndChange.Load( THEME->GetPathS("ScreenPrompt","change"), true );
}
void ScreenPrompt::Update( float fDeltaTime )
@@ -161,7 +163,7 @@ void ScreenPrompt::Change( int dir )
m_rectAnswerBox.SetXY( m_textAnswer[m_Answer].GetX(), m_textAnswer[m_Answer].GetY() );
m_rectAnswerBox.SetZoomX( m_textAnswer[m_Answer].GetUnzoomedWidth()+10.0f );
SOUND->PlayOnce( THEME->GetPathS("ScreenPrompt","change") );
m_sndChange.Play();
}
void ScreenPrompt::MenuLeft( PlayerNumber pn )