SpriteFrames

Sprite frame library for AnimatedSprite.

Sprite frame library for AnimatedSprite. Contains frames and animation data for playback.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

_getAnimations
Array _getAnimations()
_getFrames
Array _getFrames()
_setAnimations
void _setAnimations(Array arg0)
_setFrames
void _setFrames(Array arg0)
addAnimation
void addAnimation(StringArg0 anim)

Adds a new animation to the library.

addFrame
void addFrame(StringArg0 anim, Texture frame, long at_position)

Adds a frame to the given animation.

clear
void clear(StringArg0 anim)

Removes all frames from the given animation.

clearAll
void clearAll()

Removes all animations. A "default" animation will be created.

getAnimationLoop
bool getAnimationLoop(StringArg0 anim)

If true the given animation will loop.

getAnimationNames
PoolStringArray getAnimationNames()

Returns an array containing the names associated to each animation. Values are placed in alphabetical order.

getAnimationSpeed
double getAnimationSpeed(StringArg0 anim)

The animation's speed in frames per second.

getFrame
Ref!Texture getFrame(StringArg0 anim, long idx)

Returns the animation's selected frame.

getFrameCount
long getFrameCount(StringArg0 anim)

Returns the number of frames in the animation.

hasAnimation
bool hasAnimation(StringArg0 anim)

If true the named animation exists.

opAssign
SpriteFrames opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(SpriteFrames other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
removeAnimation
void removeAnimation(StringArg0 anim)

Removes the given animation.

removeFrame
void removeFrame(StringArg0 anim, long idx)

Removes the animation's selected frame.

renameAnimation
void renameAnimation(StringArg0 anim, StringArg1 newname)

Changes the animation's name to newname.

setAnimationLoop
void setAnimationLoop(StringArg0 anim, bool loop)

If true the animation will loop.

setAnimationSpeed
void setAnimationSpeed(StringArg0 anim, double speed)

The animation's speed in frames per second.

setFrame
void setFrame(StringArg0 anim, long idx, Texture txt)

Sets the texture of the given frame.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

animations
Array animations [@property setter]
animations
Array animations [@property getter]
frames
Array frames [@property getter]
Array frames [@property setter]

Static functions

_new
SpriteFrames _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta