You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
committed by
Juan Linietsky
parent
1a4be2cd8f
commit
69c95f4b4c
@@ -382,7 +382,7 @@ ResourcePreloaderEditor::ResourcePreloaderEditor() {
|
||||
add_child(file);
|
||||
|
||||
tree = memnew(Tree);
|
||||
tree->connect("button_pressed", this, "_cell_button_pressed");
|
||||
tree->connect_compat("button_pressed", this, "_cell_button_pressed");
|
||||
tree->set_columns(2);
|
||||
tree->set_column_min_width(0, 2);
|
||||
tree->set_column_min_width(1, 3);
|
||||
@@ -396,10 +396,10 @@ ResourcePreloaderEditor::ResourcePreloaderEditor() {
|
||||
dialog = memnew(AcceptDialog);
|
||||
add_child(dialog);
|
||||
|
||||
load->connect("pressed", this, "_load_pressed");
|
||||
paste->connect("pressed", this, "_paste_pressed");
|
||||
file->connect("files_selected", this, "_files_load_request");
|
||||
tree->connect("item_edited", this, "_item_edited");
|
||||
load->connect_compat("pressed", this, "_load_pressed");
|
||||
paste->connect_compat("pressed", this, "_paste_pressed");
|
||||
file->connect_compat("files_selected", this, "_files_load_request");
|
||||
tree->connect_compat("item_edited", this, "_item_edited");
|
||||
loading_scene = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user