summaryrefslogtreecommitdiffstats
path: root/scene/animation/tween.h
diff options
context:
space:
mode:
authorsanikoyes <sanikoyes@163.com>2014-08-20 16:39:28 +0800
committersanikoyes <sanikoyes@163.com>2014-08-20 16:39:28 +0800
commit87faf1c046ddc024cf956096f8ad342b97f3c2d4 (patch)
tree4fafba9c85b8a4d4f6ea57d98d09d4f0a0feffb6 /scene/animation/tween.h
parentb51da466e9fc25fb39e499f1d521a2a0b78c63cf (diff)
downloadredot-engine-87faf1c046ddc024cf956096f8ad342b97f3c2d4.tar.gz
Add tween seek/repeat support
Add tween demo
Diffstat (limited to 'scene/animation/tween.h')
-rw-r--r--scene/animation/tween.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/animation/tween.h b/scene/animation/tween.h
index 5a8186cc21..7dd917dc8e 100644
--- a/scene/animation/tween.h
+++ b/scene/animation/tween.h
@@ -88,6 +88,7 @@ private:
TweenProcessMode tween_process_mode;
bool processing;
bool active;
+ bool repeat;
float speed_scale;
List<InterpolateData> interpolates;
@@ -117,6 +118,9 @@ public:
bool is_active() const;
void set_active(bool p_active);
+ bool is_repeat() const;
+ void set_repeat(bool p_repeat);
+
void set_tween_process_mode(TweenProcessMode p_mode);
TweenProcessMode get_tween_process_mode() const;
@@ -133,6 +137,8 @@ public:
bool remove(Variant p_object, String p_key);
bool remove_all();
+ bool seek(real_t p_time);
+
bool interpolate_property(Variant p_object
, String p_property
, Variant p_initial_val