add FinishTweening
This commit is contained in:
@@ -341,6 +341,11 @@ void Actor::StopTweening()
|
||||
ASSERT( m_TweenInfo.empty() );
|
||||
}
|
||||
|
||||
void Actor::FinishTweening()
|
||||
{
|
||||
m_current = DestTweenState();
|
||||
StopTweening();
|
||||
}
|
||||
|
||||
|
||||
void Actor::ScaleTo( const RectI &rect, StretchType st )
|
||||
|
||||
@@ -139,6 +139,7 @@ public:
|
||||
|
||||
virtual void BeginTweening( float time, TweenType tt = TWEEN_LINEAR );
|
||||
virtual void StopTweening();
|
||||
virtual void FinishTweening();
|
||||
virtual float GetTweenTimeLeft() const; // Amount of time until all tweens have stopped
|
||||
virtual TweenState& DestTweenState() // where Actor will end when its tween finish
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user