From 1e0b8d6240314f1904df560cdab840771ef3e002 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 2 Mar 2023 16:54:15 +0800 Subject: [PATCH] Hide internal settings from the classref Default actions are no longer internal since we want to document them. They are still hidden from the Project Setting dialog because we hid the whole `input/` group manually. --- core/config/project_settings.cpp | 6 +++++- doc/classes/@GlobalScope.xml | 1 + doc/classes/ProjectSettings.xml | 9 --------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 56e9057a2a8..2100f4c62d6 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -401,6 +401,10 @@ void ProjectSettings::_get_property_list(List *p_list) const { vc.flags = PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_STORAGE; } + if (v->internal) { + vc.flags |= PROPERTY_USAGE_INTERNAL; + } + if (v->basic) { vc.flags |= PROPERTY_USAGE_EDITOR_BASIC_SETTING; } @@ -1242,7 +1246,7 @@ void ProjectSettings::_add_builtin_input_map() { action["events"] = events; String action_name = "input/" + E.key; - GLOBAL_DEF_INTERNAL(action_name, action); + GLOBAL_DEF(action_name, action); input_presets.push_back(action_name); } } diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index a38d25ea5b0..cdaf9bd1bed 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -2773,6 +2773,7 @@ The property is shown in the [EditorInspector] (default). + The property is excluded from the class reference. The property can be checked in the [EditorInspector]. diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 1876a76d9f9..3a363211cad 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -248,9 +248,6 @@ The project's description, displayed as a tooltip in the Project Manager when hovering the project. - - List of internal features associated with the project, like [code]Double Precision[/code] or [code]C#[/code]. Not to be confused with feature tags. - Icon used for the project, set when project loads. Exporters will also use this icon when possible. @@ -1161,12 +1158,6 @@ If non-empty, this locale will be used when running the project from the editor. - - Locale-dependent resource remaps. Edit them in the "Localization" tab of Project Settings editor. - - - List of translation files available in the project. Edit them in the "Localization" tab of Project Settings editor. - Double vowels in strings during pseudolocalization to simulate the lengthening of text due to localization.