-Make sure that ProjectSettings are properly dumped when dumping docs.

-Documented all properties of project settings

Update documentation for ProjectSettings
This commit is contained in:
Juan Linietsky
2018-06-11 13:41:16 -03:00
parent 76875ba145
commit d5bb6faac7
12 changed files with 813 additions and 7 deletions

View File

@ -233,7 +233,14 @@ void DocData::generate(bool p_basic_types) {
c.category = ClassDB::get_category(name);
List<PropertyInfo> properties;
ClassDB::get_property_list(name, &properties, true);
if (name=="ProjectSettings") {
//special case for project settings, so settings can be documented
ProjectSettings::get_singleton()->get_property_list(&properties);
} else {
ClassDB::get_property_list(name, &properties, true);
}
for (List<PropertyInfo>::Element *E = properties.front(); E; E = E->next()) {
if (E->get().usage & PROPERTY_USAGE_GROUP || E->get().usage & PROPERTY_USAGE_CATEGORY || E->get().usage & PROPERTY_USAGE_INTERNAL)