mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
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
|
|
@ -147,7 +147,7 @@ GIProbeEditorPlugin::GIProbeEditorPlugin(EditorNode *p_node) {
|
|||
bake = memnew(ToolButton);
|
||||
bake->set_icon(editor->get_gui_base()->get_icon("Bake", "EditorIcons"));
|
||||
bake->set_text(TTR("Bake GI Probe"));
|
||||
bake->connect("pressed", this, "_bake");
|
||||
bake->connect_compat("pressed", this, "_bake");
|
||||
bake_hb->add_child(bake);
|
||||
bake_info = memnew(Label);
|
||||
bake_info->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
|
@ -159,7 +159,7 @@ GIProbeEditorPlugin::GIProbeEditorPlugin(EditorNode *p_node) {
|
|||
probe_file = memnew(EditorFileDialog);
|
||||
probe_file->set_mode(EditorFileDialog::MODE_SAVE_FILE);
|
||||
probe_file->add_filter("*.res");
|
||||
probe_file->connect("file_selected", this, "_giprobe_save_path_and_bake");
|
||||
probe_file->connect_compat("file_selected", this, "_giprobe_save_path_and_bake");
|
||||
get_editor_interface()->get_base_control()->add_child(probe_file);
|
||||
probe_file->set_title(TTR("Select path for GIProbe Data File"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue