You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
[Scene] Add SceneStringNames::pressed
This commit is contained in:
@@ -244,7 +244,7 @@ ReplicationEditor::ReplicationEditor() {
|
||||
vb->add_child(hb);
|
||||
|
||||
add_pick_button = memnew(Button);
|
||||
add_pick_button->connect("pressed", callable_mp(this, &ReplicationEditor::_pick_new_property));
|
||||
add_pick_button->connect(SceneStringName(pressed), callable_mp(this, &ReplicationEditor::_pick_new_property));
|
||||
add_pick_button->set_text(TTR("Add property to sync..."));
|
||||
hb->add_child(add_pick_button);
|
||||
|
||||
@@ -260,7 +260,7 @@ ReplicationEditor::ReplicationEditor() {
|
||||
hb->add_child(np_line_edit);
|
||||
|
||||
add_from_path_button = memnew(Button);
|
||||
add_from_path_button->connect("pressed", callable_mp(this, &ReplicationEditor::_add_pressed));
|
||||
add_from_path_button->connect(SceneStringName(pressed), callable_mp(this, &ReplicationEditor::_add_pressed));
|
||||
add_from_path_button->set_text(TTR("Add from path"));
|
||||
hb->add_child(add_from_path_button);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user