You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Better hide internal properties from users
This commit is contained in:
@@ -2862,9 +2862,17 @@ void EditorHelpTooltip::parse_tooltip(const String &p_text) {
|
||||
const String &property_name = slices[2];
|
||||
const String &property_args = slices[3];
|
||||
|
||||
String formatted_text;
|
||||
|
||||
// Exclude internal properties, they are not documented.
|
||||
if (type == "internal_property") {
|
||||
formatted_text = "[i]" + TTR("This property can only be set in the Inspector.") + "[/i]";
|
||||
set_text(formatted_text);
|
||||
return;
|
||||
}
|
||||
|
||||
String title;
|
||||
String description;
|
||||
String formatted_text;
|
||||
|
||||
if (type == "class") {
|
||||
title = class_name;
|
||||
|
||||
Reference in New Issue
Block a user