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, ILayoutItem
- 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
anchorAnchorThe image's anchor
sizeVector2The image's size
animationSpriteAnimationThe sprite group to display
scaleToImageboolWhether 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
anchorAnchorThe image's anchor
sizeVector2The image's size
groupSpriteAnimationGroupThe sprite animation group to display
scaleToImageboolWhether 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
timeGameTimeThe game's time