Table of Contents

Class UiAnimation

Namespace
MLEM.Ui
Assembly
MLEM.Ui.dll

A ui animation is a simple timed event that an Element in a UiSystem can use to play a visual or other type of animation. Ui animations use StepAnimator<TObject> as their underlying animation player. To use ui animations, you can use PlayAnimation(UiAnimation), or one of the built-in style properties like MouseEnterAnimation or MouseExitAnimation.

public class UiAnimation : StepAnimator<Element>, IGenericDataHolder
Inheritance
UiAnimation
Implements
Inherited Members

Constructors

UiAnimation(params Step[])

Creates a new step animator with the given settings.

public UiAnimation(params StepAnimator<Element>.Step[] steps)

Parameters

steps Step[]

The steps to play.

UiAnimation(IList<Step>, bool)

Creates a new step animator with the given settings.

public UiAnimation(IList<StepAnimator<Element>.Step> steps, bool loop = false)

Parameters

steps IList<StepAnimator<Element>.Step>

The steps to play.

loop bool

Whether the steps should loop.

UiAnimation(double, AnimationFunction)

public UiAnimation(double seconds, StepAnimator<Element>.AnimationFunction function)

Parameters

seconds double
function StepAnimator<Element>.AnimationFunction