You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Signals: Port connect calls to use callable_mp
Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
This commit is contained in:
@@ -203,9 +203,6 @@ void ParticlesEditorBase::_node_selected(const NodePath &p_path) {
|
||||
}
|
||||
|
||||
void ParticlesEditorBase::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_node_selected", &ParticlesEditorBase::_node_selected);
|
||||
ClassDB::bind_method("_generate_emission_points", &ParticlesEditorBase::_generate_emission_points);
|
||||
}
|
||||
|
||||
ParticlesEditorBase::ParticlesEditorBase() {
|
||||
@@ -229,11 +226,11 @@ ParticlesEditorBase::ParticlesEditorBase() {
|
||||
emd_vb->add_margin_child(TTR("Emission Source: "), emission_fill);
|
||||
|
||||
emission_dialog->get_ok()->set_text(TTR("Create"));
|
||||
emission_dialog->connect_compat("confirmed", this, "_generate_emission_points");
|
||||
emission_dialog->connect("confirmed", callable_mp(this, &ParticlesEditorBase::_generate_emission_points));
|
||||
|
||||
emission_tree_dialog = memnew(SceneTreeDialog);
|
||||
add_child(emission_tree_dialog);
|
||||
emission_tree_dialog->connect_compat("selected", this, "_node_selected");
|
||||
emission_tree_dialog->connect("selected", callable_mp(this, &ParticlesEditorBase::_node_selected));
|
||||
}
|
||||
|
||||
void ParticlesEditor::_node_removed(Node *p_node) {
|
||||
@@ -248,7 +245,7 @@ void ParticlesEditor::_notification(int p_notification) {
|
||||
|
||||
if (p_notification == NOTIFICATION_ENTER_TREE) {
|
||||
options->set_icon(options->get_popup()->get_icon("Particles", "EditorIcons"));
|
||||
get_tree()->connect_compat("node_removed", this, "_node_removed");
|
||||
get_tree()->connect("node_removed", callable_mp(this, &ParticlesEditor::_node_removed));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -423,10 +420,6 @@ void ParticlesEditor::_generate_emission_points() {
|
||||
}
|
||||
|
||||
void ParticlesEditor::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_menu_option", &ParticlesEditor::_menu_option);
|
||||
ClassDB::bind_method("_generate_aabb", &ParticlesEditor::_generate_aabb);
|
||||
ClassDB::bind_method("_node_removed", &ParticlesEditor::_node_removed);
|
||||
}
|
||||
|
||||
ParticlesEditor::ParticlesEditor() {
|
||||
@@ -448,7 +441,7 @@ ParticlesEditor::ParticlesEditor() {
|
||||
options->get_popup()->add_separator();
|
||||
options->get_popup()->add_item(TTR("Restart"), MENU_OPTION_RESTART);
|
||||
|
||||
options->get_popup()->connect_compat("id_pressed", this, "_menu_option");
|
||||
options->get_popup()->connect("id_pressed", callable_mp(this, &ParticlesEditor::_menu_option));
|
||||
|
||||
generate_aabb = memnew(ConfirmationDialog);
|
||||
generate_aabb->set_title(TTR("Generate Visibility AABB"));
|
||||
@@ -462,7 +455,7 @@ ParticlesEditor::ParticlesEditor() {
|
||||
|
||||
add_child(generate_aabb);
|
||||
|
||||
generate_aabb->connect_compat("confirmed", this, "_generate_aabb");
|
||||
generate_aabb->connect("confirmed", callable_mp(this, &ParticlesEditor::_generate_aabb));
|
||||
}
|
||||
|
||||
void ParticlesEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
Reference in New Issue
Block a user