[Scene] Add SceneStringNames::pressed
This commit is contained in:
@ -260,12 +260,12 @@ EditorNetworkProfiler::EditorNetworkProfiler() {
|
||||
activate = memnew(Button);
|
||||
activate->set_toggle_mode(true);
|
||||
activate->set_text(TTR("Start"));
|
||||
activate->connect("pressed", callable_mp(this, &EditorNetworkProfiler::_activate_pressed));
|
||||
activate->connect(SceneStringName(pressed), callable_mp(this, &EditorNetworkProfiler::_activate_pressed));
|
||||
hb->add_child(activate);
|
||||
|
||||
clear_button = memnew(Button);
|
||||
clear_button->set_text(TTR("Clear"));
|
||||
clear_button->connect("pressed", callable_mp(this, &EditorNetworkProfiler::_clear_pressed));
|
||||
clear_button->connect(SceneStringName(pressed), callable_mp(this, &EditorNetworkProfiler::_clear_pressed));
|
||||
hb->add_child(clear_button);
|
||||
|
||||
hb->add_spacer();
|
||||
|
||||
@ -116,7 +116,7 @@ MultiplayerEditorPlugin::MultiplayerEditorPlugin() {
|
||||
repl_editor = memnew(ReplicationEditor);
|
||||
button = EditorNode::get_bottom_panel()->add_item(TTR("Replication"), repl_editor, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_replication_bottom_panel", TTR("Toggle Replication Bottom Panel")));
|
||||
button->hide();
|
||||
repl_editor->get_pin()->connect("pressed", callable_mp(this, &MultiplayerEditorPlugin::_pinned));
|
||||
repl_editor->get_pin()->connect(SceneStringName(pressed), callable_mp(this, &MultiplayerEditorPlugin::_pinned));
|
||||
debugger.instantiate();
|
||||
debugger->connect("open_request", callable_mp(this, &MultiplayerEditorPlugin::_open_request));
|
||||
}
|
||||
|
||||
@ -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