Свойство | Тип | Описание | |
---|---|---|---|
Frames | List |
Свойство | Тип | Описание | |
---|---|---|---|
_addedTime | double | ||
_animatedTime | float | ||
_currentFrameIndex | int | ||
_font | Font | ||
_isPlaying | bool | ||
_timePerFrame | float | ||
state | AnimationState |
Метод | Описание | |
---|---|---|
AnimatedTextSurface ( string name, int width, int height ) : System |
Creates a new animation with the specified name, width, and height.
|
|
AnimatedTextSurface ( string name, int width, int height, Font font ) : System |
Creates a new animation with the specified name, width, and height.
|
|
CreateFrame ( ) : |
Creates a new frame with the same dimensions as this entity and adds it to the Frames collection of the entity.
|
|
Load ( string file ) : |
Loads an animated text surface from a file.
|
|
Restart ( ) : void |
Restarts the animation from the first frame.
|
|
Save ( string file ) : void |
Saves the animated text surface to a file.
|
|
Start ( ) : void |
Starts animating the frames.
|
|
Stop ( ) : void |
Stops animating.
|
|
ToString ( ) : string |
Returns the name of the animation.
|
|
Update ( ) : void |
Updates the animation frames based on the time passed since the last call to this method.
|
Метод | Описание | |
---|---|---|
ResetArea ( ) : void |
Forces the area of this text surface to always be the full width and height.
|
|
UpdateFrameReferences ( ) : void |
Updates the base TextSurface render references to the current frame.
|
Метод | Описание | |
---|---|---|
CalculateFrameDuration ( ) : void |
Calculates the time needed per frame for rendering.
|
public AnimatedTextSurface ( string name, int width, int height ) : System | ||
name | string | The name of the animation. |
width | int | The width of each frame this animation will have. |
height | int | The height of each frame this animation will have. |
Результат | System |
public AnimatedTextSurface ( string name, int width, int height, Font font ) : System | ||
name | string | The name of the animation. |
width | int | The width of each frame this animation will have. |
height | int | The height of each frame this animation will have. |
font | Font | The font used with this animation. |
Результат | System |
public static Load ( string file ) : |
||
file | string | The source file. |
Результат |
public Save ( string file ) : void | ||
file | string | The destination file. |
Результат | void |