You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Use SceneStringName in more places
This commit is contained in:
@@ -254,7 +254,7 @@ SceneCreateDialog::SceneCreateDialog() {
|
||||
scene_name_edit = memnew(LineEdit);
|
||||
hb->add_child(scene_name_edit);
|
||||
scene_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
scene_name_edit->connect("text_submitted", callable_mp(this, &SceneCreateDialog::accept_create).unbind(1));
|
||||
scene_name_edit->connect(SceneStringName(text_submitted), callable_mp(this, &SceneCreateDialog::accept_create).unbind(1));
|
||||
|
||||
List<String> extensions;
|
||||
Ref<PackedScene> sd = memnew(PackedScene);
|
||||
@@ -277,7 +277,7 @@ SceneCreateDialog::SceneCreateDialog() {
|
||||
root_name_edit->set_tooltip_text(TTR("When empty, the root node name is derived from the scene name based on the \"editor/naming/node_name_casing\" project setting."));
|
||||
root_name_edit->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||
root_name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
root_name_edit->connect("text_submitted", callable_mp(this, &SceneCreateDialog::accept_create).unbind(1));
|
||||
root_name_edit->connect(SceneStringName(text_submitted), callable_mp(this, &SceneCreateDialog::accept_create).unbind(1));
|
||||
}
|
||||
|
||||
Control *spacing = memnew(Control);
|
||||
|
||||
Reference in New Issue
Block a user