Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
parent
1a4be2cd8f
commit
69c95f4b4c
275 changed files with 3831 additions and 2948 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue