separate change row and change value sounds
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user