123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
- .. _class_SpriteFrames:
- SpriteFrames
- ============
- **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Category:** Core
- Brief Description
- -----------------
- Sprite frame library for AnimatedSprite.
- Member Functions
- ----------------
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_animation<class_SpriteFrames_add_animation>` **(** :ref:`String<class_string>` anim **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_frame<class_SpriteFrames_add_frame>` **(** :ref:`String<class_string>` anim, :ref:`Object<class_object>` frame, :ref:`int<class_int>` atpos=-1 **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear<class_SpriteFrames_clear>` **(** :ref:`String<class_string>` anim **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear_all<class_SpriteFrames_clear_all>` **(** **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_animation_loop<class_SpriteFrames_get_animation_loop>` **(** :ref:`String<class_string>` anim **)** const |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_animation_speed<class_SpriteFrames_get_animation_speed>` **(** :ref:`String<class_string>` anim **)** const |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Object<class_object>` | :ref:`get_frame<class_SpriteFrames_get_frame>` **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** const |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_frame_count<class_SpriteFrames_get_frame_count>` **(** :ref:`String<class_string>` anim **)** const |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_animation<class_SpriteFrames_has_animation>` **(** :ref:`String<class_string>` anim **)** const |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`remove_animation<class_SpriteFrames_remove_animation>` **(** :ref:`String<class_string>` anim **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`remove_frame<class_SpriteFrames_remove_frame>` **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`rename_animation<class_SpriteFrames_rename_animation>` **(** :ref:`String<class_string>` anim, :ref:`String<class_string>` newname **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_animation_loop<class_SpriteFrames_set_animation_loop>` **(** :ref:`String<class_string>` anim, :ref:`bool<class_bool>` loop **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_animation_speed<class_SpriteFrames_set_animation_speed>` **(** :ref:`String<class_string>` anim, :ref:`float<class_float>` speed **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_frame<class_SpriteFrames_set_frame>` **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx, :ref:`Object<class_object>` txt **)** |
- +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- Description
- -----------
- Sprite frame library for :ref:`AnimatedSprite<class_animatedsprite>`.
- Member Function Description
- ---------------------------
- .. _class_SpriteFrames_add_animation:
- - void **add_animation** **(** :ref:`String<class_string>` anim **)**
- .. _class_SpriteFrames_add_frame:
- - void **add_frame** **(** :ref:`String<class_string>` anim, :ref:`Object<class_object>` frame, :ref:`int<class_int>` atpos=-1 **)**
- .. _class_SpriteFrames_clear:
- - void **clear** **(** :ref:`String<class_string>` anim **)**
- .. _class_SpriteFrames_clear_all:
- - void **clear_all** **(** **)**
- .. _class_SpriteFrames_get_animation_loop:
- - :ref:`bool<class_bool>` **get_animation_loop** **(** :ref:`String<class_string>` anim **)** const
- .. _class_SpriteFrames_get_animation_speed:
- - :ref:`float<class_float>` **get_animation_speed** **(** :ref:`String<class_string>` anim **)** const
- .. _class_SpriteFrames_get_frame:
- - :ref:`Object<class_object>` **get_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** const
- .. _class_SpriteFrames_get_frame_count:
- - :ref:`int<class_int>` **get_frame_count** **(** :ref:`String<class_string>` anim **)** const
- .. _class_SpriteFrames_has_animation:
- - :ref:`bool<class_bool>` **has_animation** **(** :ref:`String<class_string>` anim **)** const
- .. _class_SpriteFrames_remove_animation:
- - void **remove_animation** **(** :ref:`String<class_string>` anim **)**
- .. _class_SpriteFrames_remove_frame:
- - void **remove_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)**
- .. _class_SpriteFrames_rename_animation:
- - void **rename_animation** **(** :ref:`String<class_string>` anim, :ref:`String<class_string>` newname **)**
- .. _class_SpriteFrames_set_animation_loop:
- - void **set_animation_loop** **(** :ref:`String<class_string>` anim, :ref:`bool<class_bool>` loop **)**
- .. _class_SpriteFrames_set_animation_speed:
- - void **set_animation_speed** **(** :ref:`String<class_string>` anim, :ref:`float<class_float>` speed **)**
- .. _class_SpriteFrames_set_frame:
- - void **set_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx, :ref:`Object<class_object>` txt **)**
|