class_spriteframes.rst 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_SpriteFrames:
  4. SpriteFrames
  5. ============
  6. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Sprite frame library for AnimatedSprite.
  11. Member Functions
  12. ----------------
  13. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | void | :ref:`add_animation<class_SpriteFrames_add_animation>` **(** :ref:`String<class_string>` anim **)** |
  15. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`add_frame<class_SpriteFrames_add_frame>` **(** :ref:`String<class_string>` anim, :ref:`Texture<class_texture>` frame, :ref:`int<class_int>` atpos=-1 **)** |
  17. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | void | :ref:`clear<class_SpriteFrames_clear>` **(** :ref:`String<class_string>` anim **)** |
  19. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | void | :ref:`clear_all<class_SpriteFrames_clear_all>` **(** **)** |
  21. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`get_animation_loop<class_SpriteFrames_get_animation_loop>` **(** :ref:`String<class_string>` anim **)** const |
  23. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`get_animation_speed<class_SpriteFrames_get_animation_speed>` **(** :ref:`String<class_string>` anim **)** const |
  25. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`Texture<class_texture>` | :ref:`get_frame<class_SpriteFrames_get_frame>` **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** const |
  27. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`get_frame_count<class_SpriteFrames_get_frame_count>` **(** :ref:`String<class_string>` anim **)** const |
  29. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | :ref:`bool<class_bool>` | :ref:`has_animation<class_SpriteFrames_has_animation>` **(** :ref:`String<class_string>` anim **)** const |
  31. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`remove_animation<class_SpriteFrames_remove_animation>` **(** :ref:`String<class_string>` anim **)** |
  33. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`remove_frame<class_SpriteFrames_remove_frame>` **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** |
  35. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | void | :ref:`rename_animation<class_SpriteFrames_rename_animation>` **(** :ref:`String<class_string>` anim, :ref:`String<class_string>` newname **)** |
  37. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | void | :ref:`set_animation_loop<class_SpriteFrames_set_animation_loop>` **(** :ref:`String<class_string>` anim, :ref:`bool<class_bool>` loop **)** |
  39. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | void | :ref:`set_animation_speed<class_SpriteFrames_set_animation_speed>` **(** :ref:`String<class_string>` anim, :ref:`float<class_float>` speed **)** |
  41. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | void | :ref:`set_frame<class_SpriteFrames_set_frame>` **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx, :ref:`Texture<class_texture>` txt **)** |
  43. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. Member Variables
  45. ----------------
  46. - :ref:`Array<class_array>` **animations**
  47. - :ref:`Array<class_array>` **frames**
  48. Description
  49. -----------
  50. Sprite frame library for :ref:`AnimatedSprite<class_animatedsprite>`.
  51. Member Function Description
  52. ---------------------------
  53. .. _class_SpriteFrames_add_animation:
  54. - void **add_animation** **(** :ref:`String<class_string>` anim **)**
  55. .. _class_SpriteFrames_add_frame:
  56. - void **add_frame** **(** :ref:`String<class_string>` anim, :ref:`Texture<class_texture>` frame, :ref:`int<class_int>` atpos=-1 **)**
  57. .. _class_SpriteFrames_clear:
  58. - void **clear** **(** :ref:`String<class_string>` anim **)**
  59. .. _class_SpriteFrames_clear_all:
  60. - void **clear_all** **(** **)**
  61. .. _class_SpriteFrames_get_animation_loop:
  62. - :ref:`bool<class_bool>` **get_animation_loop** **(** :ref:`String<class_string>` anim **)** const
  63. .. _class_SpriteFrames_get_animation_speed:
  64. - :ref:`float<class_float>` **get_animation_speed** **(** :ref:`String<class_string>` anim **)** const
  65. .. _class_SpriteFrames_get_frame:
  66. - :ref:`Texture<class_texture>` **get_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** const
  67. .. _class_SpriteFrames_get_frame_count:
  68. - :ref:`int<class_int>` **get_frame_count** **(** :ref:`String<class_string>` anim **)** const
  69. .. _class_SpriteFrames_has_animation:
  70. - :ref:`bool<class_bool>` **has_animation** **(** :ref:`String<class_string>` anim **)** const
  71. .. _class_SpriteFrames_remove_animation:
  72. - void **remove_animation** **(** :ref:`String<class_string>` anim **)**
  73. .. _class_SpriteFrames_remove_frame:
  74. - void **remove_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)**
  75. .. _class_SpriteFrames_rename_animation:
  76. - void **rename_animation** **(** :ref:`String<class_string>` anim, :ref:`String<class_string>` newname **)**
  77. .. _class_SpriteFrames_set_animation_loop:
  78. - void **set_animation_loop** **(** :ref:`String<class_string>` anim, :ref:`bool<class_bool>` loop **)**
  79. .. _class_SpriteFrames_set_animation_speed:
  80. - void **set_animation_speed** **(** :ref:`String<class_string>` anim, :ref:`float<class_float>` speed **)**
  81. .. _class_SpriteFrames_set_frame:
  82. - void **set_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx, :ref:`Texture<class_texture>` txt **)**