Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Merge pull request #121553 from vaner-org/blendspace-narrower-point-edit

Thaddeus Crews10b83014d1d3
diff --cc editor/animation/animation_blend_space_2d_editor.cpp
index 1fd484c26df,c0abdeecb06..0b89f7c114d
--- a/editor/animation/animation_blend_space_2d_editor.cpp
+++ b/editor/animation/animation_blend_space_2d_editor.cpp
@@@ -1268,18 -1268,22 +1270,22 @@@ AnimationNodeBlendSpace2DEditor::Animat
snap_x->set_step(0.01);
snap_x->set_max(1000);
snap_x->set_accessibility_name(TTRC("Grid X Step"));
+ snap_x->get_line_edit()->add_theme_constant_override("minimum_character_width", 2);
+ snap_x->get_line_edit()->set_expand_to_text_length_enabled(true);
snap_y = memnew(SpinBox);
- top_hb->add_child(snap_y);
- snap_y->set_prefix("y:");
+ top_hf->add_child(snap_y);
+ snap_y->set_format("y: %s");
snap_y->set_min(0.01);
snap_y->set_step(0.01);
snap_y->set_max(1000);
snap_y->set_accessibility_name(TTRC("Grid Y Step"));
+ snap_y->get_line_edit()->add_theme_constant_override("minimum_character_width", 2);
+ snap_y->get_line_edit()->set_expand_to_text_length_enabled(true);
- top_hb->add_child(memnew(VSeparator));
+ top_hf->add_child(memnew(VSeparator));
- top_hb->add_child(memnew(Label(TTR("Sync"))));
+ top_hf->add_child(memnew(Label(TTR("Sync"))));
sync = memnew(OptionButton);
sync->add_item(TTR("None"));
sync->add_item(TTR("Independent"));