mirror of
https://github.com/chenasraf/redot-engine.git
synced 2026-05-18 01:39:11 +00:00
[Scene] Add SceneStringNames::text/value_changed
This commit is contained in:
@@ -451,7 +451,7 @@ void GroupSettingsEditor::_show_rename_dialog() {
|
||||
rename_validation_panel->set_update_callback(callable_mp(this, &GroupSettingsEditor::_check_rename));
|
||||
rename_validation_panel->set_accept_button(rename_group_dialog->get_ok_button());
|
||||
|
||||
rename_group->connect("text_changed", callable_mp(rename_validation_panel, &EditorValidationPanel::update).unbind(1));
|
||||
rename_group->connect(SceneStringName(text_changed), callable_mp(rename_validation_panel, &EditorValidationPanel::update).unbind(1));
|
||||
|
||||
vbc->add_child(rename_validation_panel);
|
||||
|
||||
@@ -499,7 +499,7 @@ GroupSettingsEditor::GroupSettingsEditor() {
|
||||
group_name = memnew(LineEdit);
|
||||
group_name->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
group_name->set_clear_button_enabled(true);
|
||||
group_name->connect("text_changed", callable_mp(this, &GroupSettingsEditor::_group_name_text_changed));
|
||||
group_name->connect(SceneStringName(text_changed), callable_mp(this, &GroupSettingsEditor::_group_name_text_changed));
|
||||
group_name->connect("text_submitted", callable_mp(this, &GroupSettingsEditor::_text_submitted));
|
||||
hbc->add_child(group_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user