diff options
author | Revan Ji <jiruifancr@gmail.com> | 2020-04-28 17:03:36 +0800 |
---|---|---|
committer | Revan Ji <jiruifancr@gmail.com> | 2020-04-29 00:26:37 +0800 |
commit | f5029e18ca24e775621be7c3f2e38c47069ecc80 (patch) | |
tree | 172cf245d04beaae176398684fe7f0d722192993 /scene/resources/texture.h | |
parent | 717f053e371f39b65ae1694901056580e1a8d6f9 (diff) |
Add set_frame, pause, and oneshot to AnimatedTexture
Add API documentation for said changes.
Diffstat (limited to 'scene/resources/texture.h')
-rw-r--r-- | scene/resources/texture.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h index f4f00c2ca0..5d5f438eba 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -567,7 +567,8 @@ private: Frame frames[MAX_FRAMES]; int frame_count; int current_frame; - + bool pause; + bool oneshot; float fps; float time; @@ -584,6 +585,15 @@ public: void set_frames(int p_frames); int get_frames() const; + void set_current_frame(int p_frame); + int get_current_frame() const; + + void set_pause(bool p_pause); + bool get_pause() const; + + void set_oneshot(bool p_oneshot); + bool get_oneshot() const; + void set_frame_texture(int p_frame, const Ref<Texture2D> &p_texture); Ref<Texture2D> get_frame_texture(int p_frame) const; |