Class ScaledAnim
A scaled animation using YTD files with all of the frames.
Inherited Members
Namespace: LemonUI.Elements
Assembly: LemonUI.SHVDN3.dll
Syntax
public class ScaledAnim : ScaledTexture, I2Dimensional, IRecalculable, IDrawable
Constructors
View SourceScaledAnim(string)
Creates a new dictionary based animation.
Declaration
public ScaledAnim(string dict)
Parameters
| Type | Name | Description |
|---|---|---|
| string | dict | The texture dictionary (YTD) to use. |
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. |
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 SourceDuration
The duration of the animation in milliseconds.
Declaration
public int Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
FrameRate
The total number of frames per second.
Declaration
public float FrameRate { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
View SourceDraw()
Draws the animation.
Declaration
public override void Draw()
Overrides
View SourceDrawSpecific(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. |