Show / Hide Table of Contents

Class ScaledAnim

A scaled animation using YTD files with all of the frames.

Inheritance
object
BaseElement
ScaledTexture
ScaledAnim
Implements
I2Dimensional
IRecalculable
IDrawable
Inherited Members
ScaledTexture.Recalculate()
ScaledTexture.Dictionary
ScaledTexture.Texture
BaseElement.literalPosition
BaseElement.relativePosition
BaseElement.literalSize
BaseElement.relativeSize
BaseElement.Position
BaseElement.Size
BaseElement.Color
BaseElement.Heading
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledAnim : ScaledTexture, I2Dimensional, IRecalculable, IDrawable

Constructors

View Source

ScaledAnim(string)

Creates a new dictionary based animation.

Declaration
public ScaledAnim(string dict)
Parameters
Type Name Description
string dict

The texture dictionary (YTD) to use.

View Source

ScaledAnim(string, PointF, SizeF)

Creates a new dictionary based animation.

Declaration
public ScaledAnim(string dict, PointF pos, SizeF size)
Parameters
Type Name Description
string dict

The texture dictionary (YTD) to use.

PointF pos

The position of the animation.

SizeF size

The size of the animation.

View Source

ScaledAnim(string, SizeF)

Creates a new dictionary based animation.

Declaration
public ScaledAnim(string dict, SizeF size)
Parameters
Type Name Description
string dict

The texture dictionary (YTD) to use.

SizeF size

The size of the animation.

Properties

View Source

Duration

The duration of the animation in milliseconds.

Declaration
public int Duration { get; set; }
Property Value
Type Description
int
View Source

FrameRate

The total number of frames per second.

Declaration
public float FrameRate { get; set; }
Property Value
Type Description
float

Methods

View Source

Draw()

Draws the animation.

Declaration
public override void Draw()
Overrides
ScaledTexture.Draw()
View Source

DrawSpecific(PointF, PointF)

Draws the animation while only drawing a specific part of the element.

Declaration
public override void DrawSpecific(PointF topLeft, PointF bottomRight)
Parameters
Type Name Description
PointF topLeft

The top left corner of the area to draw.

PointF bottomRight

The bottom right corner of the area to draw.

Overrides
ScaledTexture.DrawSpecific(PointF, PointF)

Implements

I2Dimensional
IRecalculable
IDrawable
  • View Source
In this article
Back to top Generated by DocFX