Add support for internal nodes
This commit is contained in:
parent
d04aa9a114
commit
a913ae8d56
21 changed files with 196 additions and 88 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue