summaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2023-03-02 16:54:15 +0800
committerYuri Sizov <yuris@humnom.net>2023-03-30 19:23:04 +0200
commitae0a98ef9b7772998f475bb169c435c7d4f22dab (patch)
treedf1b6c840ca19e76381db0a79573e0a8b6f6669a /core/config
parent493e39860dd5648fc0886b3e59772938158eedab (diff)
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. (cherry picked from commit 1e0b8d6240314f1904df560cdab840771ef3e002)
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index f3c0bc2153..ac51380c30 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -401,6 +401,10 @@ void ProjectSettings::_get_property_list(List<PropertyInfo> *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);
}
}