mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 21:01:50 +08:00
Add text to icon-only interpolation OptionButton
This commit is contained in:
parent
6118592c6d
commit
8b2f95ffc1
@ -583,9 +583,9 @@ void AnimationNodeBlendSpace1DEditor::_notification(int p_what) {
|
|||||||
snap->set_icon(get_editor_theme_icon(SNAME("SnapGrid")));
|
snap->set_icon(get_editor_theme_icon(SNAME("SnapGrid")));
|
||||||
open_editor->set_icon(get_editor_theme_icon(SNAME("Edit")));
|
open_editor->set_icon(get_editor_theme_icon(SNAME("Edit")));
|
||||||
interpolation->clear();
|
interpolation->clear();
|
||||||
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), "", 0);
|
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), TTR("Continuous"), 0);
|
||||||
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), "", 1);
|
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), TTR("Discrete"), 1);
|
||||||
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), "", 2);
|
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), TTR("Capture"), 2);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_PROCESS: {
|
case NOTIFICATION_PROCESS: {
|
||||||
|
@ -807,9 +807,9 @@ void AnimationNodeBlendSpace2DEditor::_notification(int p_what) {
|
|||||||
open_editor->set_icon(get_editor_theme_icon(SNAME("Edit")));
|
open_editor->set_icon(get_editor_theme_icon(SNAME("Edit")));
|
||||||
auto_triangles->set_icon(get_editor_theme_icon(SNAME("AutoTriangle")));
|
auto_triangles->set_icon(get_editor_theme_icon(SNAME("AutoTriangle")));
|
||||||
interpolation->clear();
|
interpolation->clear();
|
||||||
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), "", 0);
|
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackContinuous")), TTR("Continuous"), 0);
|
||||||
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), "", 1);
|
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackDiscrete")), TTR("Discrete"), 1);
|
||||||
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), "", 2);
|
interpolation->add_icon_item(get_editor_theme_icon(SNAME("TrackCapture")), TTR("Capture"), 2);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_PROCESS: {
|
case NOTIFICATION_PROCESS: {
|
||||||
|
Loading…
Reference in New Issue
Block a user