TransitionType_UserDefined Class |
This class allows you to create user-defined transition types. You specify these
as a list of TransitionElements. Each of these defines:
End time , End value, Interpolation method
For example, say you want to make a bouncing effect with a decay:
EndTime% EndValue% Interpolation
-------- --------- -------------
50 100 Acceleration
75 50 Deceleration
85 100 Acceleration
91 75 Deceleration
95 100 Acceleration
98 90 Deceleration
100 100 Acceleration
The time values are expressed as a percentage of the overall transition time. This
means that you can create a user-defined transition-type and then use it for transitions
of different lengths.
The values are percentages of the values between the start and end values of the properties
being animated in the transitions. 0% is the start value and 100% is the end value.
The interpolation is one of the values from the InterpolationMethod enum.
So the example above accelerates to the destination (as if under gravity) by
t=50%, then bounces back up to half the initial height by t=75%, slowing down
(as if against gravity) before falling down again and bouncing to decreasing
heights each time.
Inheritance Hierarchy
Namespace:
Transitions
Assembly:
Advanced Combat Tracker (in Advanced Combat Tracker.exe) Version: 3.8.2.285
Syntax public class TransitionType_UserDefined : ITransitionType
The TransitionType_UserDefined type exposes the following members.
Constructors Methods
| Name | Description |
---|
| onTimer |
Called to find the value for the movement of properties for the time passed in.
|
| setup |
Sets up the transitions.
|
TopSee Also