own sound instead of PlayOnce
This commit is contained in:
@@ -95,6 +95,8 @@ void ScreenPrompt::Init()
|
|||||||
|
|
||||||
m_Out.Load( THEME->GetPathB("ScreenPrompt","out") );
|
m_Out.Load( THEME->GetPathB("ScreenPrompt","out") );
|
||||||
this->AddChild( &m_Out );
|
this->AddChild( &m_Out );
|
||||||
|
|
||||||
|
m_sndChange.Load( THEME->GetPathS("ScreenPrompt","change"), true );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenPrompt::Update( float fDeltaTime )
|
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.SetXY( m_textAnswer[m_Answer].GetX(), m_textAnswer[m_Answer].GetY() );
|
||||||
m_rectAnswerBox.SetZoomX( m_textAnswer[m_Answer].GetUnzoomedWidth()+10.0f );
|
m_rectAnswerBox.SetZoomX( m_textAnswer[m_Answer].GetUnzoomedWidth()+10.0f );
|
||||||
|
|
||||||
SOUND->PlayOnce( THEME->GetPathS("ScreenPrompt","change") );
|
m_sndChange.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenPrompt::MenuLeft( PlayerNumber pn )
|
void ScreenPrompt::MenuLeft( PlayerNumber pn )
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ protected:
|
|||||||
void* m_pCallbackData;
|
void* m_pCallbackData;
|
||||||
Transition m_In;
|
Transition m_In;
|
||||||
Transition m_Out;
|
Transition m_Out;
|
||||||
|
|
||||||
|
RageSound m_sndChange;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user