load row sound in advance
This commit is contained in:
@@ -62,6 +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") );
|
||||
|
||||
bool bMarkedFirstEnabledLine = false;
|
||||
m_iCurLine = 0;
|
||||
|
||||
@@ -232,7 +234,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 );
|
||||
SOUND->PlayOnce( THEME->GetPathS("ScreenMiniMenu","row") );
|
||||
m_sndRow.Play();
|
||||
}
|
||||
|
||||
void ScreenMiniMenu::AfterLineChanged()
|
||||
@@ -245,7 +247,7 @@ void ScreenMiniMenu::AfterLineChanged()
|
||||
|
||||
void ScreenMiniMenu::AfterAnswerChanged()
|
||||
{
|
||||
SOUND->PlayOnce( THEME->GetPathS("ScreenMiniMenu","row") );
|
||||
m_sndRow.Play();
|
||||
int iAnswerInRow = m_iCurAnswers[m_iCurLine];
|
||||
CString sAnswerText = m_Def.rows[m_iCurLine].choices[iAnswerInRow];
|
||||
m_textAnswer[m_iCurLine].SetText( sAnswerText );
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "BitmapText.h"
|
||||
#include "Transition.h"
|
||||
#include "Quad.h"
|
||||
#include "RandomSample.h"
|
||||
#include "RageSound.h"
|
||||
#include "BGAnimation.h"
|
||||
|
||||
#define MAX_MENU_ROWS 40
|
||||
@@ -94,6 +94,7 @@ protected:
|
||||
int m_iCurLine;
|
||||
int m_iCurAnswers[MAX_MENU_ROWS];
|
||||
ScreenMessage m_SMSendOnOK, m_SMSendOnCancel;
|
||||
RageSound m_sndRow;
|
||||
Transition m_In;
|
||||
Transition m_Out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user