Effect that jumps forward, flips, and then changes. More...
Public Member Functions | |
JumpFlipEffect () | |
Constructor. | |
JumpFlipEffect (Widget currentWidget, Widget nextWidget) | |
Constructor. | |
Static Public Member Functions | |
static JumpFlipEffect | CreateAndStart (Widget currentWidget, Widget nextWidget) |
Creates an instance and starts the effect. | |
Protected Member Functions | |
override void | OnStart () |
Start processing. | |
override EffectUpdateResponse | OnUpdate (float elapsedTime) |
Update processing. | |
override void | OnStop () |
Stop processing. | |
Properties | |
Widget | NextWidget [get, set] |
Obtains and sets the next widget to be displayed. | |
int | Revolution [get, set] |
Obtains and sets the number of rotations. | |
float | JumpHeight [get, set] |
Obtains and sets the height of the jump. | |
float | Time [get, set] |
Obtains and sets the effect time. | |
float | JumpDelay [get, set] |
Obtains and sets the time until rotation starts. | |
float | ToDegreeDelay [get, set] |
Obtains and sets the angle when rotation starts. | |
JumpFlipEffectAxis | RotationAxis [get, set] |
Obtains and sets the rotation axis. |
Effect that jumps forward, flips, and then changes.
The front is the old widget and the back is the new widget. Each has the same size. It can also fall to a new position while jumping and flipping.
JumpFlipEffect | ( | Widget | currentWidget, |
Widget | nextWidget | ||
) |
Constructor.
currentWidget | Widget being displayed |
nextWidget | Next widget to be displayed |
static JumpFlipEffect CreateAndStart | ( | Widget | currentWidget, |
Widget | nextWidget | ||
) | [static] |
override EffectUpdateResponse OnUpdate | ( | float | elapsedTime | ) | [protected, virtual] |
Update processing.
elapsedTime | Elapsed time from previous update (ms) |
Implements Effect.
int Revolution [get, set] |
Obtains and sets the number of rotations.
(Half rotation = 1)