class_spriteframes.rst 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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:`Object<class_object>` 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:`Object<class_object>` | :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:`Object<class_object>` txt **)** |
  43. +------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. Description
  45. -----------
  46. Sprite frame library for :ref:`AnimatedSprite<class_animatedsprite>`.
  47. Member Function Description
  48. ---------------------------
  49. .. _class_SpriteFrames_add_animation:
  50. - void **add_animation** **(** :ref:`String<class_string>` anim **)**
  51. .. _class_SpriteFrames_add_frame:
  52. - void **add_frame** **(** :ref:`String<class_string>` anim, :ref:`Object<class_object>` frame, :ref:`int<class_int>` atpos=-1 **)**
  53. .. _class_SpriteFrames_clear:
  54. - void **clear** **(** :ref:`String<class_string>` anim **)**
  55. .. _class_SpriteFrames_clear_all:
  56. - void **clear_all** **(** **)**
  57. .. _class_SpriteFrames_get_animation_loop:
  58. - :ref:`bool<class_bool>` **get_animation_loop** **(** :ref:`String<class_string>` anim **)** const
  59. .. _class_SpriteFrames_get_animation_speed:
  60. - :ref:`float<class_float>` **get_animation_speed** **(** :ref:`String<class_string>` anim **)** const
  61. .. _class_SpriteFrames_get_frame:
  62. - :ref:`Object<class_object>` **get_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)** const
  63. .. _class_SpriteFrames_get_frame_count:
  64. - :ref:`int<class_int>` **get_frame_count** **(** :ref:`String<class_string>` anim **)** const
  65. .. _class_SpriteFrames_has_animation:
  66. - :ref:`bool<class_bool>` **has_animation** **(** :ref:`String<class_string>` anim **)** const
  67. .. _class_SpriteFrames_remove_animation:
  68. - void **remove_animation** **(** :ref:`String<class_string>` anim **)**
  69. .. _class_SpriteFrames_remove_frame:
  70. - void **remove_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx **)**
  71. .. _class_SpriteFrames_rename_animation:
  72. - void **rename_animation** **(** :ref:`String<class_string>` anim, :ref:`String<class_string>` newname **)**
  73. .. _class_SpriteFrames_set_animation_loop:
  74. - void **set_animation_loop** **(** :ref:`String<class_string>` anim, :ref:`bool<class_bool>` loop **)**
  75. .. _class_SpriteFrames_set_animation_speed:
  76. - void **set_animation_speed** **(** :ref:`String<class_string>` anim, :ref:`float<class_float>` speed **)**
  77. .. _class_SpriteFrames_set_frame:
  78. - void **set_frame** **(** :ref:`String<class_string>` anim, :ref:`int<class_int>` idx, :ref:`Object<class_object>` txt **)**