summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-06-04 21:23:43 +0200
committerkobewi <kobewi4e@gmail.com>2024-06-05 16:11:34 +0200
commitd1d7762a9f2bb1661b70f503c6301cf6c353e073 (patch)
tree3daadc6f0d9d7f078b462206d2f452c731921421 /editor/project_settings_editor.cpp
parent96a386f3c424af96d950ee5098b4b0e4907c9508 (diff)
downloadredot-engine-d1d7762a9f2bb1661b70f503c6301cf6c353e073.tar.gz
Add Globals tab to reorganize Project Settings dialog
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index cf1ad36adc..6a6e2b83ab 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -743,20 +743,24 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
localization_editor->connect("localization_changed", callable_mp(this, &ProjectSettingsEditor::queue_save));
tab_container->add_child(localization_editor);
+ TabContainer *globals_container = memnew(TabContainer);
+ globals_container->set_name(TTR("Globals"));
+ tab_container->add_child(globals_container);
+
autoload_settings = memnew(EditorAutoloadSettings);
autoload_settings->set_name(TTR("Autoload"));
autoload_settings->connect("autoload_changed", callable_mp(this, &ProjectSettingsEditor::queue_save));
- tab_container->add_child(autoload_settings);
+ globals_container->add_child(autoload_settings);
shaders_global_shader_uniforms_editor = memnew(ShaderGlobalsEditor);
shaders_global_shader_uniforms_editor->set_name(TTR("Shader Globals"));
shaders_global_shader_uniforms_editor->connect("globals_changed", callable_mp(this, &ProjectSettingsEditor::queue_save));
- tab_container->add_child(shaders_global_shader_uniforms_editor);
+ globals_container->add_child(shaders_global_shader_uniforms_editor);
group_settings = memnew(GroupSettingsEditor);
- group_settings->set_name(TTR("Global Groups"));
+ group_settings->set_name(TTR("Groups"));
group_settings->connect("group_changed", callable_mp(this, &ProjectSettingsEditor::queue_save));
- tab_container->add_child(group_settings);
+ globals_container->add_child(group_settings);
plugin_settings = memnew(EditorPluginSettings);
plugin_settings->set_name(TTR("Plugins"));