mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 04:34:39 +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
|
|
@ -268,7 +268,7 @@ MeshLibraryEditor::MeshLibraryEditor(EditorNode *p_editor) {
|
|||
file->add_filter("*." + extensions[i] + " ; " + extensions[i].to_upper());
|
||||
}
|
||||
add_child(file);
|
||||
file->connect("file_selected", this, "_import_scene_cbk");
|
||||
file->connect_compat("file_selected", this, "_import_scene_cbk");
|
||||
|
||||
menu = memnew(MenuButton);
|
||||
SpatialEditor::get_singleton()->add_control_to_menu_panel(menu);
|
||||
|
|
@ -281,13 +281,13 @@ MeshLibraryEditor::MeshLibraryEditor(EditorNode *p_editor) {
|
|||
menu->get_popup()->add_item(TTR("Import from Scene"), MENU_OPTION_IMPORT_FROM_SCENE);
|
||||
menu->get_popup()->add_item(TTR("Update from Scene"), MENU_OPTION_UPDATE_FROM_SCENE);
|
||||
menu->get_popup()->set_item_disabled(menu->get_popup()->get_item_index(MENU_OPTION_UPDATE_FROM_SCENE), true);
|
||||
menu->get_popup()->connect("id_pressed", this, "_menu_cbk");
|
||||
menu->get_popup()->connect_compat("id_pressed", this, "_menu_cbk");
|
||||
menu->hide();
|
||||
|
||||
editor = p_editor;
|
||||
cd = memnew(ConfirmationDialog);
|
||||
add_child(cd);
|
||||
cd->get_ok()->connect("pressed", this, "_menu_confirm");
|
||||
cd->get_ok()->connect_compat("pressed", this, "_menu_confirm");
|
||||
}
|
||||
|
||||
void MeshLibraryEditorPlugin::edit(Object *p_node) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue