Merge pull request #77849 from TokageItLab/add-spring-tween-to-track-editor

Add spring tween to `AnimationTrackEditor`
This commit is contained in:
Yuri Sizov 2023-06-06 12:37:35 +02:00 committed by GitHub
commit 2cec7e9ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6720,6 +6720,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
transition_selection->add_item(TTR("Circ", "Transition Type"), Tween::TRANS_CIRC);
transition_selection->add_item(TTR("Bounce", "Transition Type"), Tween::TRANS_BOUNCE);
transition_selection->add_item(TTR("Back", "Transition Type"), Tween::TRANS_BACK);
transition_selection->add_item(TTR("Spring", "Transition Type"), Tween::TRANS_SPRING);
transition_selection->select(Tween::TRANS_LINEAR); // Default
transition_selection->set_auto_translate(false); // Translation context is needed.
ease_selection = memnew(OptionButton);