diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-29 10:10:26 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-04-29 10:10:26 +0200 |
commit | 4b2245ffe16fb92cf51a0b3ae964fb1a11696728 (patch) | |
tree | e8b71a29490549791079548e3e952ec93c5cdfa7 | |
parent | 6f14e19aa1cd8699c476298d8b37865b4dd367fe (diff) | |
parent | 8b2f95ffc18ae7b37702fea390141ca9e4658edd (diff) | |
download | redot-engine-4b2245ffe16fb92cf51a0b3ae964fb1a11696728.tar.gz |
Merge pull request #91238 from timothyqiu/interpolation-tooltip
Add text to icon-only interpolation OptionButton in blend space editor
-rw-r--r-- | editor/plugins/animation_blend_space_1d_editor.cpp | 6 | ||||
-rw-r--r-- | editor/plugins/animation_blend_space_2d_editor.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/editor/plugins/animation_blend_space_1d_editor.cpp b/editor/plugins/animation_blend_space_1d_editor.cpp index 8c2b738549..1baeddbe86 100644 --- a/editor/plugins/animation_blend_space_1d_editor.cpp +++ b/editor/plugins/animation_blend_space_1d_editor.cpp @@ -583,9 +583,9 @@ void AnimationNodeBlendSpace1DEditor::_notification(int p_what) { snap->set_icon(get_editor_theme_icon(SNAME("SnapGrid"))); open_editor->set_icon(get_editor_theme_icon(SNAME("Edit"))); interpolation->clear(); - interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), "", 0); - interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), "", 1); - interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), "", 2); + interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), TTR("Continuous"), 0); + interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), TTR("Discrete"), 1); + interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), TTR("Capture"), 2); } break; case NOTIFICATION_PROCESS: { diff --git a/editor/plugins/animation_blend_space_2d_editor.cpp b/editor/plugins/animation_blend_space_2d_editor.cpp index ec67fb7254..06853f0862 100644 --- a/editor/plugins/animation_blend_space_2d_editor.cpp +++ b/editor/plugins/animation_blend_space_2d_editor.cpp @@ -807,9 +807,9 @@ void AnimationNodeBlendSpace2DEditor::_notification(int p_what) { open_editor->set_icon(get_editor_theme_icon(SNAME("Edit"))); auto_triangles->set_icon(get_editor_theme_icon(SNAME("AutoTriangle"))); interpolation->clear(); - interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), "", 0); - interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), "", 1); - interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), "", 2); + interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), TTR("Continuous"), 0); + interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), TTR("Discrete"), 1); + interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), TTR("Capture"), 2); } break; case NOTIFICATION_PROCESS: { |