You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Add method_descr again because it's required for classes that
don't have public methods. revert #14814
This commit is contained in:
@@ -947,6 +947,7 @@ Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) {
|
||||
class_desc->add_newline();
|
||||
}
|
||||
|
||||
bool method_descr = false;
|
||||
bool sort_methods = EditorSettings::get_singleton()->get("text_editor/help/sort_functions_alphabetically");
|
||||
|
||||
Vector<DocData::MethodDoc> methods;
|
||||
@@ -1015,6 +1016,10 @@ Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) {
|
||||
class_desc->pop(); //cell
|
||||
}
|
||||
|
||||
if (m[i].description != "") {
|
||||
method_descr = true;
|
||||
}
|
||||
|
||||
_add_method(m[i], true);
|
||||
}
|
||||
|
||||
@@ -1409,6 +1414,8 @@ Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) {
|
||||
}
|
||||
}
|
||||
|
||||
if (method_descr) {
|
||||
|
||||
section_line.push_back(Pair<String, int>(TTR("Methods"), class_desc->get_line_count() - 2));
|
||||
class_desc->push_color(title_color);
|
||||
class_desc->push_font(doc_title_font);
|
||||
@@ -1444,6 +1451,7 @@ Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) {
|
||||
class_desc->add_newline();
|
||||
class_desc->add_newline();
|
||||
}
|
||||
}
|
||||
|
||||
scroll_locked = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user