Merge pull request #91113 from KoBeWi/acceptator

Register text enter for script base class
This commit is contained in:
Rémi Verschelde 2024-04-24 18:55:30 +02:00
commit 4bca2d8bc6
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -883,6 +883,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed)); parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed));
parent_name->set_h_size_flags(Control::SIZE_EXPAND_FILL); parent_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hb->add_child(parent_name); hb->add_child(parent_name);
register_text_enter(parent_name);
parent_search_button = memnew(Button); parent_search_button = memnew(Button);
parent_search_button->connect("pressed", callable_mp(this, &ScriptCreateDialog::_browse_class_in_tree)); parent_search_button->connect("pressed", callable_mp(this, &ScriptCreateDialog::_browse_class_in_tree));
hb->add_child(parent_search_button); hb->add_child(parent_search_button);