Table of Contents

Class SpriteAnimationImage

Namespace
MLEM.Ui.Elements
Assembly
MLEM.Ui.dll

A sprite animation image for use inside of a UiSystem. A sprite animation image is an Image that displays a SpriteAnimation or SpriteAnimationGroup.

public class SpriteAnimationImage : Image, IGenericDataHolder
Inheritance
SpriteAnimationImage
Implements
Inherited Members
Extension Methods

Constructors

SpriteAnimationImage(Anchor, Vector2, SpriteAnimation, bool)

Creates a new sprite animation image with the given settings

public SpriteAnimationImage(Anchor anchor, Vector2 size, SpriteAnimation animation, bool scaleToImage = false)

Parameters

anchor Anchor

The image's anchor

size Vector2

The image's size

animation SpriteAnimation

The sprite group to display

scaleToImage bool

Whether this image element should scale to the texture

SpriteAnimationImage(Anchor, Vector2, SpriteAnimationGroup, bool)

Creates a new sprite animation image with the given settings

public SpriteAnimationImage(Anchor anchor, Vector2 size, SpriteAnimationGroup group, bool scaleToImage = false)

Parameters

anchor Anchor

The image's anchor

size Vector2

The image's size

group SpriteAnimationGroup

The sprite animation group to display

scaleToImage bool

Whether this image element should scale to the texture

Fields

Group

The sprite animation group that is displayed by this image

public SpriteAnimationGroup Group

Field Value

SpriteAnimationGroup

Methods

Update(GameTime)

Updates this element and all of its SortedChildren

public override void Update(GameTime time)

Parameters

time GameTime

The game's time