ScreenWithMenuElements::StartTransitioning -> StartTransitioningScreen, to make searching
for it easier (vs. Transition::StartTransitioning). (Trying to simplify tweening; this may go back later.)
This commit is contained in:
@@ -109,7 +109,7 @@ void ScreenAttract::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
SM == SM_BeginFadingOut )
|
SM == SM_BeginFadingOut )
|
||||||
{
|
{
|
||||||
if( !IsTransitioning() )
|
if( !IsTransitioning() )
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
else if( SM == SM_GoToStartScreen )
|
else if( SM == SM_GoToStartScreen )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ void ScreenBookkeeping::MenuStart( PlayerNumber pn )
|
|||||||
if( !IsTransitioning() )
|
if( !IsTransitioning() )
|
||||||
{
|
{
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ void ScreenBookkeeping::MenuBack( PlayerNumber pn )
|
|||||||
if(!IsTransitioning())
|
if(!IsTransitioning())
|
||||||
{
|
{
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
StartTransitioning( SM_GoToPrevScreen );
|
StartTransitioningScreen( SM_GoToPrevScreen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -70,11 +70,11 @@ void ScreenCenterImage::Input( const InputEventPlus &input )
|
|||||||
{
|
{
|
||||||
case MENU_BUTTON_START:
|
case MENU_BUTTON_START:
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case MENU_BUTTON_BACK:
|
case MENU_BUTTON_BACK:
|
||||||
StartTransitioning( SM_GoToPrevScreen );
|
StartTransitioningScreen( SM_GoToPrevScreen );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ void ScreenEditMenu::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
if( !ScreenTextEntry::s_bCancelledLast )
|
if( !ScreenTextEntry::s_bCancelledLast )
|
||||||
{
|
{
|
||||||
SOUND->StopMusic();
|
SOUND->StopMusic();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ void ScreenEditMenu::MenuStart( PlayerNumber pn )
|
|||||||
{
|
{
|
||||||
SOUND->StopMusic();
|
SOUND->StopMusic();
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -969,7 +969,7 @@ void ScreenEvaluation::EndScreen()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ void ScreenEvaluationMultiplayer::MenuBack( PlayerNumber pn )
|
|||||||
void ScreenEvaluationMultiplayer::MenuStart( PlayerNumber pn )
|
void ScreenEvaluationMultiplayer::MenuStart( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
|
|
||||||
this->StartTransitioning( SM_GoToNextScreen );
|
this->StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -505,7 +505,7 @@ void ScreenEz2SelectMusic::Update( float fDeltaTime )
|
|||||||
if(m_bMadeChoice && RageTimer::GetTimeSinceStartFast() > m_fRemainingWaitTime + 2 && !m_bTransitioning)
|
if(m_bMadeChoice && RageTimer::GetTimeSinceStartFast() > m_fRemainingWaitTime + 2 && !m_bTransitioning)
|
||||||
{
|
{
|
||||||
m_bTransitioning = true;
|
m_bTransitioning = true;
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
Screen::Update( fDeltaTime );
|
Screen::Update( fDeltaTime );
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ void ScreenEz2SelectPlayer::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
}
|
}
|
||||||
|
|
||||||
TweenOursOffScreen();
|
TweenOursOffScreen();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ void ScreenEz2SelectPlayer::MenuStart( PlayerNumber pn )
|
|||||||
if( bBothSidesJoined )
|
if( bBothSidesJoined )
|
||||||
{
|
{
|
||||||
TweenOursOffScreen();
|
TweenOursOffScreen();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ void ScreenInstructions::MenuBack( PlayerNumber pn )
|
|||||||
|
|
||||||
void ScreenInstructions::MenuStart( PlayerNumber pn )
|
void ScreenInstructions::MenuStart( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ void ScreenJoinMultiplayer::MenuStart( PlayerNumber pn )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->StartTransitioning( SM_GoToNextScreen );
|
this->StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ void ScreenMapControllers::Input( const InputEventPlus &input )
|
|||||||
|
|
||||||
INPUTMAPPER->SaveMappingsToDisk(); // save changes
|
INPUTMAPPER->SaveMappingsToDisk(); // save changes
|
||||||
|
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
for( int b=0; b<GAMESTATE->GetCurrentGame()->m_iButtonsPerController; b++ )
|
for( int b=0; b<GAMESTATE->GetCurrentGame()->m_iButtonsPerController; b++ )
|
||||||
m_Line[b].RunCommands( (b%2)? ODD_LINE_OUT:EVEN_LINE_OUT );
|
m_Line[b].RunCommands( (b%2)? ODD_LINE_OUT:EVEN_LINE_OUT );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -727,7 +727,7 @@ void ScreenNameEntryTraditional::MenuRight( const InputEventPlus &input )
|
|||||||
|
|
||||||
void ScreenNameEntryTraditional::AllFinished()
|
void ScreenNameEntryTraditional::AllFinished()
|
||||||
{
|
{
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
|
|
||||||
FOREACH_HumanPlayer( pn )
|
FOREACH_HumanPlayer( pn )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -478,7 +478,7 @@ void ScreenNetSelectMusic::StartSelectedSong()
|
|||||||
GAMESTATE->m_pPreferredSong = pSong;
|
GAMESTATE->m_pPreferredSong = pSong;
|
||||||
|
|
||||||
TweenOffScreen();
|
TweenOffScreen();
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenNetSelectMusic::UpdateDifficulties( PlayerNumber pn )
|
void ScreenNetSelectMusic::UpdateDifficulties( PlayerNumber pn )
|
||||||
|
|||||||
@@ -630,7 +630,7 @@ void ScreenOptions::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
{
|
{
|
||||||
if(IsTransitioning())
|
if(IsTransitioning())
|
||||||
return; /* already transitioning */
|
return; /* already transitioning */
|
||||||
StartTransitioning( SM_ExportOptions );
|
StartTransitioningScreen( SM_ExportOptions );
|
||||||
|
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
|
|
||||||
|
|||||||
@@ -147,13 +147,13 @@ void ScreenRanking::Input( const InputEventPlus &input )
|
|||||||
void ScreenRanking::MenuStart( PlayerNumber pn )
|
void ScreenRanking::MenuStart( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
if( !IsTransitioning() )
|
if( !IsTransitioning() )
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenRanking::MenuBack( PlayerNumber pn )
|
void ScreenRanking::MenuBack( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
if( !IsTransitioning() )
|
if( !IsTransitioning() )
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenRanking::HandleScreenMessage( const ScreenMessage SM )
|
void ScreenRanking::HandleScreenMessage( const ScreenMessage SM )
|
||||||
@@ -172,7 +172,7 @@ void ScreenRanking::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StartTransitioning(SM_GoToNextScreen);
|
StartTransitioningScreen(SM_GoToNextScreen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( SM == SM_HidePage )
|
else if( SM == SM_HidePage )
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ void ScreenSelect::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
else if( SM == SM_AllDoneChoosing ) /* It's our turn to tween out. */
|
else if( SM == SM_AllDoneChoosing ) /* It's our turn to tween out. */
|
||||||
{
|
{
|
||||||
if( !IsTransitioning() )
|
if( !IsTransitioning() )
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
else if( SM == SM_GoToNextScreen )
|
else if( SM == SM_GoToNextScreen )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ void ScreenSelectCharacter::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
switch( SM )
|
switch( SM )
|
||||||
{
|
{
|
||||||
case SM_BeginFadingOut:
|
case SM_BeginFadingOut:
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
return;
|
return;
|
||||||
case SM_MenuTimer:
|
case SM_MenuTimer:
|
||||||
MenuStart(PLAYER_1);
|
MenuStart(PLAYER_1);
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ void ScreenSelectGroup::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
switch( SM )
|
switch( SM )
|
||||||
{
|
{
|
||||||
case SM_BeginFadingOut:
|
case SM_BeginFadingOut:
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Screen::HandleScreenMessage( SM );
|
Screen::HandleScreenMessage( SM );
|
||||||
|
|||||||
@@ -1245,12 +1245,12 @@ void ScreenSelectMusic::MenuStart( PlayerNumber pn )
|
|||||||
|
|
||||||
if( OPTIONS_MENU_AVAILABLE )
|
if( OPTIONS_MENU_AVAILABLE )
|
||||||
{
|
{
|
||||||
StartTransitioning( SM_None );
|
StartTransitioningScreen( SM_None );
|
||||||
this->PostScreenMessage( SM_TweenOffOptionsMessage, SHOW_OPTIONS_MESSAGE_SECONDS );
|
this->PostScreenMessage( SM_TweenOffOptionsMessage, SHOW_OPTIONS_MESSAGE_SECONDS );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StartTransitioning( SM_BeginFadingOut );
|
StartTransitioningScreen( SM_BeginFadingOut );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ void ScreenSetTime::MenuStart( PlayerNumber pn )
|
|||||||
}
|
}
|
||||||
|
|
||||||
SOUND->PlayOnce( THEME->GetPathS("Common","start") );
|
SOUND->PlayOnce( THEME->GetPathS("Common","start") );
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ChangeSelection( +1 );
|
ChangeSelection( +1 );
|
||||||
@@ -235,7 +235,7 @@ void ScreenSetTime::MenuSelect( PlayerNumber pn )
|
|||||||
|
|
||||||
void ScreenSetTime::MenuBack( PlayerNumber pn )
|
void ScreenSetTime::MenuBack( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
StartTransitioning( SM_GoToPrevScreen );
|
StartTransitioningScreen( SM_GoToPrevScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ void ScreenSplash::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
}
|
}
|
||||||
else if( SM == SM_BeginFadingOut )
|
else if( SM == SM_BeginFadingOut )
|
||||||
{
|
{
|
||||||
StartTransitioning( SM_GoToNextScreen );
|
StartTransitioningScreen( SM_GoToNextScreen );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ void ScreenTestInput::MenuBack( PlayerNumber pn )
|
|||||||
if(!IsTransitioning())
|
if(!IsTransitioning())
|
||||||
{
|
{
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
StartTransitioning( SM_GoToPrevScreen );
|
StartTransitioningScreen( SM_GoToPrevScreen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ void ScreenTestLights::MenuBack( PlayerNumber pn )
|
|||||||
{
|
{
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
OFF_COMMAND( m_textInputs );
|
OFF_COMMAND( m_textInputs );
|
||||||
StartTransitioning( SM_GoToPrevScreen );
|
StartTransitioningScreen( SM_GoToPrevScreen );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ void ScreenWithMenuElements::ResetTimer()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenWithMenuElements::StartTransitioning( ScreenMessage smSendWhenDone )
|
void ScreenWithMenuElements::StartTransitioningScreen( ScreenMessage smSendWhenDone )
|
||||||
{
|
{
|
||||||
TweenOffScreen();
|
TweenOffScreen();
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public:
|
|||||||
virtual ~ScreenWithMenuElements();
|
virtual ~ScreenWithMenuElements();
|
||||||
|
|
||||||
void Update( float fDeltaTime );
|
void Update( float fDeltaTime );
|
||||||
void StartTransitioning( ScreenMessage smSendWhenDone );
|
void StartTransitioningScreen( ScreenMessage smSendWhenDone );
|
||||||
virtual void Cancel( ScreenMessage smSendWhenDone );
|
virtual void Cancel( ScreenMessage smSendWhenDone );
|
||||||
bool IsTransitioning();
|
bool IsTransitioning();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user