Skip to content

Class LemonUI::Elements::ScaledAnim

ClassList > LemonUI > Elements > ScaledAnim

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

Inherits the following classes: LemonUI::Elements::ScaledTexture

Public Properties

Type Name
property int Duration
The duration of the animation in milliseconds.
property float FrameRate
The total number of frames per second.

Public Properties inherited from LemonUI::Elements::ScaledTexture

See LemonUI::Elements::ScaledTexture

Type Name
property string?? Dictionary
The dictionary where the texture is loaded.
property string?? Texture
The texture to draw from the dictionary.

Public Properties inherited from LemonUI::Elements::BaseElement

See LemonUI::Elements::BaseElement

Type Name
property Color Color
The Color of the drawable.
property float Heading
The rotation of the drawable.
property PointF Position
The Position of the drawable.
property SizeF Size
The Size of the drawable.

Public Properties inherited from LemonUI::Elements::I2Dimensional

See LemonUI::Elements::I2Dimensional

Type Name
property Color Color
The Color of the drawable.
property PointF Position
The Position of the drawable.
property SizeF Size
The Size of the drawable.

Public Functions

Type Name
virtual override void Draw ()
Draws the animation.
ScaledAnim (string dict)
Creates a new dictionary based animation.
ScaledAnim (string dict, SizeF size)
Creates a new dictionary based animation.
ScaledAnim (string dict, PointF pos, SizeF size)
Creates a new dictionary based animation.

Public Functions inherited from LemonUI::Elements::ScaledTexture

See LemonUI::Elements::ScaledTexture

Type Name
virtual override void Draw ()
Draws the texture on the screen.
void DrawSpecific (PointF topLeft, PointF bottomRight)
Draws a specific part of the texture on the screen.
virtual override void Recalculate ()
Recalculates the position based on the size.
ScaledTexture (string dictionary, string texture)
Creates a new ScaledTexture with a Position and Size of Zero.
ScaledTexture (PointF pos, SizeF size, string dictionary, string texture)
Creates a new ScaledTexture with a Position and Size of zero.

Public Functions inherited from LemonUI::Elements::BaseElement

See LemonUI::Elements::BaseElement

Type Name
BaseElement (PointF pos, SizeF size)
Creates a new BaseElement with the specified Position and Size.
virtual abstract void Draw () = 0
Draws the item on the screen.
virtual void Recalculate ()
Recalculates the size and position of this item.

Public Functions inherited from LemonUI::IRecalculable

See LemonUI::IRecalculable

Type Name
void Recalculate ()
Recalculates the values.

Public Functions inherited from LemonUI::IDrawable

See LemonUI::IDrawable

Type Name
void Draw ()
Draws the item on the screen.

Public Properties Documentation

property Duration

int LemonUI.Elements.ScaledAnim.Duration;

property FrameRate

float LemonUI.Elements.ScaledAnim.FrameRate;

Public Functions Documentation

function Draw

inline virtual override void LemonUI::Elements::ScaledAnim::Draw () 

Implements LemonUI::Elements::BaseElement::Draw

function ScaledAnim [1/3]

Creates a new dictionary based animation.

inline LemonUI::Elements::ScaledAnim::ScaledAnim (
    string dict
) 

Parameters:

  • dict The texture dictionary (YTD) to use.

function ScaledAnim [2/3]

Creates a new dictionary based animation.

inline LemonUI::Elements::ScaledAnim::ScaledAnim (
    string dict,
    SizeF size
) 

Parameters:

  • dict The texture dictionary (YTD) to use.
  • size The size of the animation.

function ScaledAnim [3/3]

Creates a new dictionary based animation.

inline LemonUI::Elements::ScaledAnim::ScaledAnim (
    string dict,
    PointF pos,
    SizeF size
) 

Parameters:

  • dict The texture dictionary (YTD) to use.
  • pos The position of the animation.
  • size The size of the animation.

The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Elements/ScaledAnim.cs