|
@@ -116,6 +116,7 @@ public:
|
|
|
grid_offset_x->set_allow_greater(true);
|
|
|
grid_offset_x->set_suffix("px");
|
|
|
grid_offset_x->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ grid_offset_x->set_select_all_on_focus(true);
|
|
|
child_container->add_child(grid_offset_x);
|
|
|
|
|
|
grid_offset_y = memnew(SpinBox);
|
|
@@ -125,6 +126,7 @@ public:
|
|
|
grid_offset_y->set_allow_greater(true);
|
|
|
grid_offset_y->set_suffix("px");
|
|
|
grid_offset_y->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ grid_offset_y->set_select_all_on_focus(true);
|
|
|
child_container->add_child(grid_offset_y);
|
|
|
|
|
|
label = memnew(Label);
|
|
@@ -138,6 +140,7 @@ public:
|
|
|
grid_step_x->set_allow_greater(true);
|
|
|
grid_step_x->set_suffix("px");
|
|
|
grid_step_x->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ grid_step_x->set_select_all_on_focus(true);
|
|
|
child_container->add_child(grid_step_x);
|
|
|
|
|
|
grid_step_y = memnew(SpinBox);
|
|
@@ -146,6 +149,7 @@ public:
|
|
|
grid_step_y->set_allow_greater(true);
|
|
|
grid_step_y->set_suffix("px");
|
|
|
grid_step_y->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ grid_step_y->set_select_all_on_focus(true);
|
|
|
child_container->add_child(grid_step_y);
|
|
|
|
|
|
child_container = memnew(GridContainer);
|
|
@@ -164,6 +168,7 @@ public:
|
|
|
primary_grid_steps->set_allow_greater(true);
|
|
|
primary_grid_steps->set_suffix(TTR("steps"));
|
|
|
primary_grid_steps->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ primary_grid_steps->set_select_all_on_focus(true);
|
|
|
child_container->add_child(primary_grid_steps);
|
|
|
|
|
|
container->add_child(memnew(HSeparator));
|
|
@@ -184,6 +189,7 @@ public:
|
|
|
rotation_offset->set_max(SPIN_BOX_ROTATION_RANGE);
|
|
|
rotation_offset->set_suffix("deg");
|
|
|
rotation_offset->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ rotation_offset->set_select_all_on_focus(true);
|
|
|
child_container->add_child(rotation_offset);
|
|
|
|
|
|
label = memnew(Label);
|
|
@@ -196,6 +202,7 @@ public:
|
|
|
rotation_step->set_max(SPIN_BOX_ROTATION_RANGE);
|
|
|
rotation_step->set_suffix("deg");
|
|
|
rotation_step->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
+ rotation_step->set_select_all_on_focus(true);
|
|
|
child_container->add_child(rotation_step);
|
|
|
|
|
|
container->add_child(memnew(HSeparator));
|
|
@@ -214,6 +221,7 @@ public:
|
|
|
scale_step->set_allow_greater(true);
|
|
|
scale_step->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
|
|
scale_step->set_step(0.01f);
|
|
|
+ scale_step->set_select_all_on_focus(true);
|
|
|
child_container->add_child(scale_step);
|
|
|
}
|
|
|
|