summaryrefslogtreecommitdiffstats
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-10-07 18:17:25 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-08-01 18:40:04 +0200
commit6059a9b62413da3ae5906784e1f7c6bfe11c546e (patch)
tree67dd3404d6ba634ce40e4b99d4c00b747469a054 /editor/property_editor.cpp
parent5ecd61a3150f87a433dd5a7ff49a842b72516640 (diff)
downloadredot-engine-6059a9b62413da3ae5906784e1f7c6bfe11c546e.tar.gz
Improve easing inspector usability
- Add `positive_only` property hint to disallow using negative presets. These values are clamped in several places in the editor already, so this avoids displaying presets that don't work. - Move the Zero preset at the end of the positive list to match the custom property editor. It's also used less often than Linear, Ease In and Ease Out. - Rename presets to be consistent between the easing property editor and custom property editor. - Remove unused `inout` hint which was redundant since it was already the default.
Diffstat (limited to 'editor/property_editor.cpp')
-rw-r--r--editor/property_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp
index 4092cc47e3..3906827027 100644
--- a/editor/property_editor.cpp
+++ b/editor/property_editor.cpp
@@ -445,8 +445,8 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::
type_button->get_popup()->add_item(TTR("Ease Out"), EASING_EASE_OUT);
if (hint_text != "attenuation") {
type_button->get_popup()->add_item(TTR("Zero"), EASING_ZERO);
- type_button->get_popup()->add_item(TTR("Easing In-Out"), EASING_IN_OUT);
- type_button->get_popup()->add_item(TTR("Easing Out-In"), EASING_OUT_IN);
+ type_button->get_popup()->add_item(TTR("Ease In-Out"), EASING_IN_OUT);
+ type_button->get_popup()->add_item(TTR("Ease Out-In"), EASING_OUT_IN);
}
type_button->show();