separate change row and change value sounds

This commit is contained in:
Chris Danford
2005-03-17 02:17:00 +00:00
parent bb490cce88
commit a5e71825d1
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -62,7 +62,8 @@ ScreenMiniMenu::ScreenMiniMenu( const Menu* pDef, ScreenMessage SM_SendOnOK, Scr
m_textTitle.SetZoom( 0.8f );
this->AddChild( &m_textTitle );
m_sndRow.Load( THEME->GetPathS("ScreenMiniMenu","row") );
m_sndChangeRow.Load( THEME->GetPathS("ScreenMiniMenu","row"), true );
m_sndChangeValue.Load( THEME->GetPathS("ScreenMiniMenu","value"), true );
bool bMarkedFirstEnabledLine = false;
m_iCurLine = 0;
@@ -234,7 +235,7 @@ void ScreenMiniMenu::BeforeLineChanged()
m_textAnswer[m_iCurLine].SetEffectNone();
m_textLabel[m_iCurLine].SetZoom( ZOOM_NOT_SELECTED );
m_textAnswer[m_iCurLine].SetZoom( ZOOM_NOT_SELECTED );
m_sndRow.Play();
m_sndChangeRow.Play();
}
void ScreenMiniMenu::AfterLineChanged()
@@ -247,7 +248,7 @@ void ScreenMiniMenu::AfterLineChanged()
void ScreenMiniMenu::AfterAnswerChanged()
{
m_sndRow.Play();
m_sndChangeValue.Play();
int iAnswerInRow = m_iCurAnswers[m_iCurLine];
CString sAnswerText = m_Def.rows[m_iCurLine].choices[iAnswerInRow];
m_textAnswer[m_iCurLine].SetText( sAnswerText );