diff options
| author | kobewi <kobewi4e@gmail.com> | 2021-08-25 15:49:30 +0200 |
|---|---|---|
| committer | kobewi <kobewi4e@gmail.com> | 2021-08-28 02:07:23 +0200 |
| commit | a913ae8d56086fc75ab0a768dde84e3d5d94295c (patch) | |
| tree | 9e571be51948e2898dc78937aa7a86dea0c47a1d /scene/gui/spin_box.cpp | |
| parent | d04aa9a114811e27c672e9874c262e91299216f0 (diff) | |
| download | redot-engine-a913ae8d56086fc75ab0a768dde84e3d5d94295c.tar.gz | |
Add support for internal nodes
Diffstat (limited to 'scene/gui/spin_box.cpp')
| -rw-r--r-- | scene/gui/spin_box.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index 65a3eb3adf..1074d0d8a0 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -278,7 +278,7 @@ void SpinBox::_bind_methods() { SpinBox::SpinBox() { line_edit = memnew(LineEdit); - add_child(line_edit); + add_child(line_edit, false, INTERNAL_MODE_FRONT); line_edit->set_anchors_and_offsets_preset(Control::PRESET_WIDE); line_edit->set_mouse_filter(MOUSE_FILTER_PASS); @@ -291,5 +291,5 @@ SpinBox::SpinBox() { range_click_timer = memnew(Timer); range_click_timer->connect("timeout", callable_mp(this, &SpinBox::_range_click_timeout)); - add_child(range_click_timer); + add_child(range_click_timer, false, INTERNAL_MODE_FRONT); } |
