diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-17 00:22:45 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-17 00:22:45 +0100 |
commit | e45cc1781b181c57e4ae092db1c4f5a7f688e873 (patch) | |
tree | 89b7ccff1dd5f8d289b827ca577b86539bb09c1a /scene/animation/tween.h | |
parent | 7b152de1e9b087caacdb6b930cda7842c6c91abc (diff) | |
parent | 58f4984d607d89a07f1e44cdce99b17424864b4b (diff) | |
download | redot-engine-e45cc1781b181c57e4ae092db1c4f5a7f688e873.tar.gz |
Merge pull request #82306 from KoBeWi/tween_literally_anything
Add `set_custom_interpolator()` to PropertyTweener
Diffstat (limited to 'scene/animation/tween.h')
-rw-r--r-- | scene/animation/tween.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/animation/tween.h b/scene/animation/tween.h index 053b4fac46..8dcc3ad7b6 100644 --- a/scene/animation/tween.h +++ b/scene/animation/tween.h @@ -197,6 +197,7 @@ public: Ref<PropertyTweener> as_relative(); Ref<PropertyTweener> set_trans(Tween::TransitionType p_trans); Ref<PropertyTweener> set_ease(Tween::EaseType p_ease); + Ref<PropertyTweener> set_custom_interpolator(const Callable &p_method); Ref<PropertyTweener> set_delay(double p_delay); void set_tween(const Ref<Tween> &p_tween) override; @@ -222,6 +223,7 @@ private: double duration = 0; Tween::TransitionType trans_type = Tween::TRANS_MAX; // This is set inside set_tween(); Tween::EaseType ease_type = Tween::EASE_MAX; + Callable custom_method; double delay = 0; bool do_continue = true; |