You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
show parametric setters and getters in editor help
This commit is contained in:
@@ -603,8 +603,11 @@ void EditorHelp::_update_doc() {
|
|||||||
Vector<DocData::MethodDoc> methods;
|
Vector<DocData::MethodDoc> methods;
|
||||||
|
|
||||||
for (int i = 0; i < cd.methods.size(); i++) {
|
for (int i = 0; i < cd.methods.size(); i++) {
|
||||||
if (skip_methods.has(cd.methods[i].name))
|
if (skip_methods.has(cd.methods[i].name)) {
|
||||||
continue;
|
if (cd.methods[i].arguments.size() == 0 /* getter */ || (cd.methods[i].arguments.size() == 1 && cd.methods[i].return_type == "void" /* setter */)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
methods.push_back(cd.methods[i]);
|
methods.push_back(cd.methods[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user