diff options
| author | sanikoyes | 2015-01-07 19:46:01 +0800 |
|---|---|---|
| committer | sanikoyes | 2015-01-07 19:46:01 +0800 |
| commit | b260bfab636f6edffb3696830cc00314c6cb1bad (patch) | |
| tree | 01aaf4dc1aafeedda773e5ddc01fa8723f392a74 /scene/animation/tween.h | |
| parent | 6b106b319b0b4c9436a992bf26c88d93180905e9 (diff) | |
| download | godot-b260bfab636f6edffb3696830cc00314c6cb1bad.tar.gz godot-b260bfab636f6edffb3696830cc00314c6cb1bad.tar.zst godot-b260bfab636f6edffb3696830cc00314c6cb1bad.zip | |
Diffstat (limited to 'scene/animation/tween.h')
| -rw-r--r-- | scene/animation/tween.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scene/animation/tween.h b/scene/animation/tween.h index 3e23cc362..d34c9e6ba 100644 --- a/scene/animation/tween.h +++ b/scene/animation/tween.h @@ -83,6 +83,7 @@ private: bool active; InterpolateType type; bool finish; + bool call_deferred; real_t elapsed; ObjectID id; StringName key; @@ -95,7 +96,8 @@ private: TransitionType trans_type; EaseType ease_type; real_t delay; - Variant arg; + int args; + Variant arg[5]; }; String autoplay; @@ -178,10 +180,16 @@ public: , real_t p_delay = 0 ); - bool interpolate_callback(Object *p_node + bool interpolate_callback(Object *p_object , real_t p_times_in_sec , String p_callback - , Variant p_arg = Variant() + , VARIANT_ARG_DECLARE + ); + + bool interpolate_deferred_callback(Object *p_object + , real_t p_times_in_sec + , String p_callback + , VARIANT_ARG_DECLARE ); bool follow_property(Object *p_node |
