You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Connect text_submitted of built-in script name
This commit is contained in:
@@ -1038,6 +1038,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
|
|||||||
|
|
||||||
internal_name = memnew(LineEdit);
|
internal_name = memnew(LineEdit);
|
||||||
internal_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
internal_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
|
internal_name->connect("text_submitted", callable_mp(this, &ScriptCreateDialog::_path_submitted));
|
||||||
label = memnew(Label(TTR("Name:")));
|
label = memnew(Label(TTR("Name:")));
|
||||||
gc->add_child(label);
|
gc->add_child(label);
|
||||||
gc->add_child(internal_name);
|
gc->add_child(internal_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user