summaryrefslogtreecommitdiffstats
path: root/editor/script_create_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-19 10:10:00 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-19 10:10:00 +0200
commit558054f707de38b24af9225294a73acc3988a80c (patch)
treee9d7d3834a353e54de3b0d824840c97bf707fcd0 /editor/script_create_dialog.cpp
parent0cc321b144ecf74315ce2e0b52772cf4f92c9aae (diff)
parentfbb879debd0957354ab42731be402b0a5a9f4e48 (diff)
downloadredot-engine-558054f707de38b24af9225294a73acc3988a80c.tar.gz
Merge pull request #92640 from AThousandShips/text_value_changed_sname
[Scene] Add `SceneStringNames::text/value_changed`
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r--editor/script_create_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp
index a056d531c1..64c97e1641 100644
--- a/editor/script_create_dialog.cpp
+++ b/editor/script_create_dialog.cpp
@@ -880,7 +880,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
HBoxContainer *hb = memnew(HBoxContainer);
hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
parent_name = memnew(LineEdit);
- parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed));
+ parent_name->connect(SceneStringName(text_changed), callable_mp(this, &ScriptCreateDialog::_parent_name_changed));
parent_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hb->add_child(parent_name);
register_text_enter(parent_name);
@@ -925,7 +925,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
hb = memnew(HBoxContainer);
hb->connect(SceneStringName(sort_children), callable_mp(this, &ScriptCreateDialog::_path_hbox_sorted));
file_path = memnew(LineEdit);
- file_path->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_path_changed));
+ file_path->connect(SceneStringName(text_changed), callable_mp(this, &ScriptCreateDialog::_path_changed));
file_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hb->add_child(file_path);
register_text_enter(file_path);