summaryrefslogtreecommitdiffstats
path: root/scene/animation/tween.h
diff options
context:
space:
mode:
authorJohn Pennycook <john.pennycook@gmail.com>2023-03-20 20:49:31 -0700
committerJohn Pennycook <john.pennycook@gmail.com>2023-03-20 20:49:31 -0700
commit4cb2085543c26fb4315634b9d739b5b05195c415 (patch)
treea5353a6e2e3f995ffccb2d129f232995fa8dbf8e /scene/animation/tween.h
parent161d028ae89acb578cfcd4f29bfe9ac205459e8b (diff)
downloadredot-engine-4cb2085543c26fb4315634b9d739b5b05195c415.tar.gz
Add get_loops_left() function to Tween
Implements godotengine/godot-proposals#5141. Adds a new get_loops_left() function to Tween, allowing developers to reason about how many times a tweening sequence will repeat and whether to expect finished or loop_finished as the next signal. Co-authored-by: Tomek <kobewi4e@gmail.com>
Diffstat (limited to 'scene/animation/tween.h')
-rw-r--r--scene/animation/tween.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/tween.h b/scene/animation/tween.h
index b7dc941111..87fdbe52fd 100644
--- a/scene/animation/tween.h
+++ b/scene/animation/tween.h
@@ -160,6 +160,7 @@ public:
Ref<Tween> set_parallel(bool p_parallel);
Ref<Tween> set_loops(int p_loops);
+ int get_loops_left() const;
Ref<Tween> set_speed_scale(float p_speed);
Ref<Tween> set_trans(TransitionType p_trans);
TransitionType get_trans();