fix transitions in ScreenGameplay
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
CourseEntryDisplay::CourseEntryDisplay()
|
CourseEntryDisplay::CourseEntryDisplay()
|
||||||
{
|
{
|
||||||
m_sprFrame.Load( THEME->GetPathTo("Graphics","select course content bar") );
|
m_sprFrame.Load( THEME->GetPathTo("Graphics","CourseEntryDisplay bar") );
|
||||||
this->AddChild( &m_sprFrame );
|
this->AddChild( &m_sprFrame );
|
||||||
|
|
||||||
m_textNumber.LoadFromFont( THEME->GetPathTo("Fonts","Header2") );
|
m_textNumber.LoadFromFont( THEME->GetPathTo("Fonts","Header2") );
|
||||||
@@ -57,7 +57,7 @@ CourseEntryDisplay::CourseEntryDisplay()
|
|||||||
m_TextBanner.SetXY( TEXT_BANNER_X, TEXT_BANNER_Y );
|
m_TextBanner.SetXY( TEXT_BANNER_X, TEXT_BANNER_Y );
|
||||||
this->AddChild( &m_TextBanner );
|
this->AddChild( &m_TextBanner );
|
||||||
|
|
||||||
m_textFoot.LoadFromTextureAndChars( THEME->GetPathTo("Graphics","select music meter 2x1"),"10" );
|
m_textFoot.LoadFromTextureAndChars( THEME->GetPathTo("Graphics","CourseEntryDisplay difficulty 2x1"),"10" );
|
||||||
m_textFoot.SetXY( FOOT_X, FOOT_Y );
|
m_textFoot.SetXY( FOOT_X, FOOT_Y );
|
||||||
m_textFoot.EnableShadow( false );
|
m_textFoot.EnableShadow( false );
|
||||||
this->AddChild( &m_textFoot );
|
this->AddChild( &m_textFoot );
|
||||||
|
|||||||
@@ -470,8 +470,6 @@ ScreenGameplay::ScreenGameplay( bool bDemonstration )
|
|||||||
|
|
||||||
if( !bDemonstration ) // only load if we're going to use it
|
if( !bDemonstration ) // only load if we're going to use it
|
||||||
{
|
{
|
||||||
m_soundFail.Load( THEME->GetPathTo("Sounds","ScreenGameplay failed") );
|
|
||||||
m_soundTryExtraStage.Load( THEME->GetPathTo("Sounds","ScreenGameplay extra") );
|
|
||||||
m_soundOniDie.Load( THEME->GetPathTo("Sounds","ScreenGameplay oni die") );
|
m_soundOniDie.Load( THEME->GetPathTo("Sounds","ScreenGameplay oni die") );
|
||||||
m_announcerReady.Load( ANNOUNCER->GetPathTo("gameplay ready") );
|
m_announcerReady.Load( ANNOUNCER->GetPathTo("gameplay ready") );
|
||||||
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() )
|
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() )
|
||||||
@@ -1480,7 +1478,6 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
// this->SendScreenMessage( SM_GoToScreenAfterFail, 0.2f );
|
// this->SendScreenMessage( SM_GoToScreenAfterFail, 0.2f );
|
||||||
// SCREENMAN->SendMessageToTopScreen( SM_PlayFailComment, 1.0f );
|
// SCREENMAN->SendMessageToTopScreen( SM_PlayFailComment, 1.0f );
|
||||||
m_Failed.StartTransitioning( SM_GoToScreenAfterFail );
|
m_Failed.StartTransitioning( SM_GoToScreenAfterFail );
|
||||||
m_soundFail.PlayRandom();
|
|
||||||
|
|
||||||
// make the background invisible so we don't waste power drawing it
|
// make the background invisible so we don't waste power drawing it
|
||||||
m_Background.BeginTweening( 1 );
|
m_Background.BeginTweening( 1 );
|
||||||
|
|||||||
@@ -142,9 +142,7 @@ protected:
|
|||||||
Sprite m_sprOniGameOver[NUM_PLAYERS];
|
Sprite m_sprOniGameOver[NUM_PLAYERS];
|
||||||
void ShowOniGameOver( PlayerNumber pn );
|
void ShowOniGameOver( PlayerNumber pn );
|
||||||
|
|
||||||
RandomSample m_soundFail;
|
|
||||||
RandomSample m_soundOniDie;
|
RandomSample m_soundOniDie;
|
||||||
RandomSample m_soundTryExtraStage;
|
|
||||||
RandomSample m_announcerReady;
|
RandomSample m_announcerReady;
|
||||||
RandomSample m_announcerHereWeGo;
|
RandomSample m_announcerHereWeGo;
|
||||||
RandomSample m_announcerDanger;
|
RandomSample m_announcerDanger;
|
||||||
|
|||||||
@@ -451,6 +451,9 @@ void ScreenOptions::StartGoToNextState()
|
|||||||
|
|
||||||
void ScreenOptions::MenuStart( PlayerNumber pn )
|
void ScreenOptions::MenuStart( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
|
if( m_Menu.IsTransitioning() )
|
||||||
|
return;
|
||||||
|
|
||||||
if( PREFSMAN->m_bArcadeOptionsNavigation )
|
if( PREFSMAN->m_bArcadeOptionsNavigation )
|
||||||
{
|
{
|
||||||
bool bAllOnExit = true;
|
bool bAllOnExit = true;
|
||||||
|
|||||||
@@ -219,10 +219,10 @@ void ScreenPlayerOptions::DrawPrimitives()
|
|||||||
|
|
||||||
void ScreenPlayerOptions::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
|
void ScreenPlayerOptions::Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
|
||||||
{
|
{
|
||||||
if( type == IET_FIRST_PRESS &&
|
if( !m_Menu.m_In.IsTransitioning() &&
|
||||||
!m_Menu.m_In.IsTransitioning() &&
|
|
||||||
MenuI.IsValid() &&
|
MenuI.IsValid() &&
|
||||||
MenuI.button == MENU_BUTTON_START &&
|
MenuI.button == MENU_BUTTON_START &&
|
||||||
|
type != IET_RELEASE &&
|
||||||
PREFSMAN->m_bShowSongOptions )
|
PREFSMAN->m_bShowSongOptions )
|
||||||
{
|
{
|
||||||
if( m_bAcceptedChoices && !m_bGoToOptions )
|
if( m_bAcceptedChoices && !m_bGoToOptions )
|
||||||
|
|||||||
@@ -254,6 +254,9 @@ void ScreenSelectGroup::MenuDown( PlayerNumber pn )
|
|||||||
|
|
||||||
void ScreenSelectGroup::MenuStart( PlayerNumber pn )
|
void ScreenSelectGroup::MenuStart( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
|
if( m_bChosen )
|
||||||
|
return;
|
||||||
|
|
||||||
m_soundSelect.PlayRandom();
|
m_soundSelect.PlayRandom();
|
||||||
m_Menu.m_MenuTimer.Stop();
|
m_Menu.m_MenuTimer.Stop();
|
||||||
m_bChosen = true;
|
m_bChosen = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user