You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -94,9 +94,6 @@ void NavigationMeshEditor::edit(NavigationRegion *p_nav_mesh_instance) {
|
||||
}
|
||||
|
||||
void NavigationMeshEditor::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_bake_pressed", &NavigationMeshEditor::_bake_pressed);
|
||||
ClassDB::bind_method("_clear_pressed", &NavigationMeshEditor::_clear_pressed);
|
||||
}
|
||||
|
||||
NavigationMeshEditor::NavigationMeshEditor() {
|
||||
@@ -107,13 +104,13 @@ NavigationMeshEditor::NavigationMeshEditor() {
|
||||
bake_hbox->add_child(button_bake);
|
||||
button_bake->set_toggle_mode(true);
|
||||
button_bake->set_text(TTR("Bake NavMesh"));
|
||||
button_bake->connect_compat("pressed", this, "_bake_pressed");
|
||||
button_bake->connect("pressed", callable_mp(this, &NavigationMeshEditor::_bake_pressed));
|
||||
|
||||
button_reset = memnew(ToolButton);
|
||||
bake_hbox->add_child(button_reset);
|
||||
// No button text, we only use a revert icon which is set when entering the tree.
|
||||
button_reset->set_tooltip(TTR("Clear the navigation mesh."));
|
||||
button_reset->connect_compat("pressed", this, "_clear_pressed");
|
||||
button_reset->connect("pressed", callable_mp(this, &NavigationMeshEditor::_clear_pressed));
|
||||
|
||||
bake_info = memnew(Label);
|
||||
bake_hbox->add_child(bake_info);
|
||||
|
||||
Reference in New Issue
Block a user