summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorStanislav Labzyuk <stanislav.labzyuk@gmail.com>2022-05-12 15:20:12 +0700
committerStanislav Labzyuk <stanislav.labzyuk@gmail.com>2023-12-19 18:07:19 +0100
commit958699a0c42320c5266540278a4c967ee6476623 (patch)
treeb07c3bf6aba3884ea056602aad9f3215d7fb20ab /editor/project_settings_editor.cpp
parent1f5d4a62e9e9a8227ad63155b080fbbfac899571 (diff)
downloadredot-engine-958699a0c42320c5266540278a4c967ee6476623.tar.gz
Implement project-wide node groups
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp7
1 files changed, 7 insertions, 0 deletions
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);