Class SpriteAnimationImage
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
AnchorThe image's anchor
size
Vector2The image's size
animation
SpriteAnimationThe sprite group to display
scaleToImage
boolWhether 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
AnchorThe image's anchor
size
Vector2The image's size
group
SpriteAnimationGroupThe sprite animation group to display
scaleToImage
boolWhether 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
Methods
Update(GameTime)
Updates this element and all of its SortedChildren
public override void Update(GameTime time)
Parameters
time
GameTimeThe game's time