C# Class UMD.HCIL.Piccolo.Activities.PColorActivity

PColorActivity interpolates between two colors for its target over the duration of the animation.
The source color is retrieved from the target just before the activity is scheduled to start.
Inheritance: UMD.HCIL.Piccolo.Activities.PInterpolatingActivity
Afficher le fichier Open project: ME3Explorer/ME3Explorer Class Usage Examples

Méthodes publiques

Méthode Description
PColorActivity ( long duration, long stepInterval, Target aTarget ) : System

Constructs a new PColorActivity that will animate from the source color to no color, unless the destination color is later set.

PColorActivity ( long duration, long stepInterval, Target aTarget, Color aDestination ) : System

Constructs a new PColorActivity that will animate from the source color to the destination color.

PColorActivity ( long duration, long stepInterval, int loopCount, ActivityMode mode, Target aTarget, Color aDestination ) : System

Constructs a new PColorActivity that animate between the source and destination colors in the order specified by the mode, looping the given number of iterations.

SetRelativeTargetValue ( float zeroToOne ) : void

Overridden. See PInterpolatingActivity.SetRelativeTargetValue.

Méthodes protégées

Méthode Description
OnActivityStarted ( ) : void

Overridden. See PInterpolatingActivity.OnActivityStarted.

Method Details

OnActivityStarted() protected méthode

Overridden. See PInterpolatingActivity.OnActivityStarted.
protected OnActivityStarted ( ) : void
Résultat void

PColorActivity() public méthode

Constructs a new PColorActivity that will animate from the source color to no color, unless the destination color is later set.
public PColorActivity ( long duration, long stepInterval, Target aTarget ) : System
duration long The length of one loop of the activity.
stepInterval long /// The minimum number of milliseconds that this activity should delay between /// steps. ///
aTarget Target /// The object that the activity will be applied to and where the source state /// will be taken from. ///
Résultat System

PColorActivity() public méthode

Constructs a new PColorActivity that will animate from the source color to the destination color.
public PColorActivity ( long duration, long stepInterval, Target aTarget, Color aDestination ) : System
duration long The length of one loop of the activity.
stepInterval long /// The minimum number of milliseconds that this activity should delay between /// steps. ///
aTarget Target /// The object that the activity will be applied to and where the source state /// will be taken from. ///
aDestination Color The destination color state.
Résultat System

PColorActivity() public méthode

Constructs a new PColorActivity that animate between the source and destination colors in the order specified by the mode, looping the given number of iterations.
public PColorActivity ( long duration, long stepInterval, int loopCount, ActivityMode mode, Target aTarget, Color aDestination ) : System
duration long The length of one loop of the activity.
stepInterval long /// The minimum number of milliseconds that this activity should delay between steps. ///
loopCount int /// The number of times the activity should reschedule itself. ///
mode ActivityMode /// Defines how the activity interpolates between states. ///
aTarget Target /// The object that the activity will be applied to and where the source state /// will be taken from. ///
aDestination Color The destination color state.
Résultat System

SetRelativeTargetValue() public méthode

Overridden. See PInterpolatingActivity.SetRelativeTargetValue.
public SetRelativeTargetValue ( float zeroToOne ) : void
zeroToOne float
Résultat void