mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #31925 from bojidar-bg/31855-overriden-properties-docs
Add overriden properties to the documentation
This commit is contained in:
commit
2f52d73c21
112 changed files with 310 additions and 56 deletions
|
@ -489,6 +489,10 @@ void EditorHelp::_update_doc() {
|
|||
describe = true;
|
||||
}
|
||||
|
||||
if (cd.properties[i].overridden) {
|
||||
describe = false;
|
||||
}
|
||||
|
||||
class_desc->push_cell();
|
||||
class_desc->push_font(doc_code_font);
|
||||
class_desc->push_color(headline_color);
|
||||
|
@ -506,7 +510,7 @@ void EditorHelp::_update_doc() {
|
|||
|
||||
if (cd.properties[i].default_value != "") {
|
||||
class_desc->push_color(symbol_color);
|
||||
class_desc->add_text(" [default: ");
|
||||
class_desc->add_text(cd.properties[i].overridden ? " [override: " : " [default: ");
|
||||
class_desc->pop();
|
||||
class_desc->push_color(value_color);
|
||||
_add_text(_fix_constant(cd.properties[i].default_value));
|
||||
|
@ -992,6 +996,9 @@ void EditorHelp::_update_doc() {
|
|||
|
||||
for (int i = 0; i < cd.properties.size(); i++) {
|
||||
|
||||
if (cd.properties[i].overridden)
|
||||
continue;
|
||||
|
||||
property_line[cd.properties[i].name] = class_desc->get_line_count() - 2;
|
||||
|
||||
class_desc->push_table(2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue