Very few places use BounceBegin and BounceEnd in code. I want these

tween types to only be used in commands, not in code.  If anyone
is strongly attached to these tweens being BounceBegin, the complete
fix is to update this code so it uses ON_COMMAND/OFF_COMMAND.  (GroupList
is probably going to be removed, anyway, since music wheel sections
make it obsolete.)
This commit is contained in:
Glenn Maynard
2006-01-23 05:13:52 +00:00
parent 605ff46f0c
commit 9190f037d4
2 changed files with 12 additions and 12 deletions
+10 -10
View File
@@ -194,11 +194,11 @@ void GroupList::TweenOnScreen()
m_sprButtons[i]->SetX( 400 );
m_textLabels[i]->SetX( 400 );
m_sprButtons[i]->BeginTweening( 0.1f*offset, TWEEN_BOUNCE_END );
m_textLabels[i]->BeginTweening( 0.1f*offset, TWEEN_BOUNCE_END );
m_sprButtons[i]->BeginTweening( 0.1f*offset, TWEEN_ACCELERATE );
m_textLabels[i]->BeginTweening( 0.1f*offset, TWEEN_ACCELERATE );
m_sprButtons[i]->BeginTweening( 0.2f, TWEEN_BOUNCE_END );
m_textLabels[i]->BeginTweening( 0.2f, TWEEN_BOUNCE_END );
m_sprButtons[i]->BeginTweening( 0.2f, TWEEN_ACCELERATE );
m_textLabels[i]->BeginTweening( 0.2f, TWEEN_ACCELERATE );
m_sprButtons[i]->SetX( 0 );
m_textLabels[i]->SetX( 0 );
@@ -222,17 +222,17 @@ void GroupList::TweenOffScreen()
const int offset = max(0, i-m_iTop);
if( i == m_iSelection )
{
m_sprButtons[i]->BeginTweening( 1.0f, TWEEN_BOUNCE_BEGIN );
m_textLabels[i]->BeginTweening( 1.0f, TWEEN_BOUNCE_BEGIN );
m_sprButtons[i]->BeginTweening( 1.0f, TWEEN_DECELERATE );
m_textLabels[i]->BeginTweening( 1.0f, TWEEN_DECELERATE );
}
else
{
m_sprButtons[i]->BeginTweening( 0.1f*offset, TWEEN_BOUNCE_BEGIN );
m_textLabels[i]->BeginTweening( 0.1f*offset, TWEEN_BOUNCE_BEGIN );
m_sprButtons[i]->BeginTweening( 0.1f*offset, TWEEN_DECELERATE );
m_textLabels[i]->BeginTweening( 0.1f*offset, TWEEN_DECELERATE );
}
m_sprButtons[i]->BeginTweening( 0.2f, TWEEN_BOUNCE_BEGIN );
m_textLabels[i]->BeginTweening( 0.2f, TWEEN_BOUNCE_BEGIN );
m_sprButtons[i]->BeginTweening( 0.2f, TWEEN_DECELERATE );
m_textLabels[i]->BeginTweening( 0.2f, TWEEN_DECELERATE );
m_sprButtons[i]->SetX( 400 );
m_textLabels[i]->SetX( 400 );