From 958699a0c42320c5266540278a4c967ee6476623 Mon Sep 17 00:00:00 2001 From: Stanislav Labzyuk Date: Thu, 12 May 2022 15:20:12 +0700 Subject: Implement project-wide node groups --- editor/project_settings_editor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'editor/project_settings_editor.cpp') diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 09de9cda49..d587737ed4 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -45,6 +45,7 @@ ProjectSettingsEditor *ProjectSettingsEditor::singleton = nullptr; void ProjectSettingsEditor::connect_filesystem_dock_signals(FileSystemDock *p_fs_dock) { localization_editor->connect_filesystem_dock_signals(p_fs_dock); + group_settings->connect_filesystem_dock_signals(p_fs_dock); } void ProjectSettingsEditor::popup_project_settings(bool p_clear_filter) { @@ -62,6 +63,7 @@ void ProjectSettingsEditor::popup_project_settings(bool p_clear_filter) { localization_editor->update_translations(); autoload_settings->update_autoload(); + group_settings->update_groups(); plugin_settings->update_plugins(); import_defaults_editor->clear(); @@ -709,6 +711,11 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { shaders_global_shader_uniforms_editor->connect("globals_changed", callable_mp(this, &ProjectSettingsEditor::queue_save)); tab_container->add_child(shaders_global_shader_uniforms_editor); + group_settings = memnew(GroupSettingsEditor); + group_settings->set_name(TTR("Global Groups")); + group_settings->connect("group_changed", callable_mp(this, &ProjectSettingsEditor::queue_save)); + tab_container->add_child(group_settings); + plugin_settings = memnew(EditorPluginSettings); plugin_settings->set_name(TTR("Plugins")); tab_container->add_child(plugin_settings); -- cgit v1.2.3