mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
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 1e0b8d6240)
This commit is contained in:
parent
493e39860d
commit
ae0a98ef9b
3 changed files with 6 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue