Pull out common code.
This commit is contained in:
@@ -344,22 +344,18 @@ void ScreenEdit::Update( float fDeltaTime )
|
|||||||
if( m_EditMode == MODE_RECORDING )
|
if( m_EditMode == MODE_RECORDING )
|
||||||
{
|
{
|
||||||
TransitionFromRecordToEdit();
|
TransitionFromRecordToEdit();
|
||||||
GAMESTATE->m_fSongBeat = m_NoteFieldEdit.m_fEndMarker;
|
|
||||||
m_rectRecordBack.StopTweening();
|
|
||||||
m_rectRecordBack.BeginTweening( 0.5f );
|
|
||||||
m_rectRecordBack.SetTweenDiffuse( D3DXCOLOR(0,0,0,0) );
|
|
||||||
}
|
}
|
||||||
else if( m_EditMode == MODE_PLAYING )
|
else if( m_EditMode == MODE_PLAYING )
|
||||||
{
|
{
|
||||||
m_soundMusic.Stop();
|
m_soundMusic.Stop();
|
||||||
m_EditMode = MODE_EDITING;
|
m_EditMode = MODE_EDITING;
|
||||||
|
}
|
||||||
GAMESTATE->m_fSongBeat = m_NoteFieldEdit.m_fEndMarker;
|
GAMESTATE->m_fSongBeat = m_NoteFieldEdit.m_fEndMarker;
|
||||||
m_rectRecordBack.StopTweening();
|
m_rectRecordBack.StopTweening();
|
||||||
m_rectRecordBack.BeginTweening( 0.5f );
|
m_rectRecordBack.BeginTweening( 0.5f );
|
||||||
m_rectRecordBack.SetTweenDiffuse( D3DXCOLOR(0,0,0,0) );
|
m_rectRecordBack.SetTweenDiffuse( D3DXCOLOR(0,0,0,0) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
m_BGAnimation.Update( fDeltaTime );
|
m_BGAnimation.Update( fDeltaTime );
|
||||||
m_SnapDisplay.Update( fDeltaTime );
|
m_SnapDisplay.Update( fDeltaTime );
|
||||||
|
|||||||
Reference in New Issue
Block a user