1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Merge pull request #87381 from YuriSizov/core-sneaky-properties

Better hide internal properties from users
This commit is contained in:
Rémi Verschelde
2024-01-29 13:16:55 +01:00
4 changed files with 35 additions and 7 deletions

View File

@@ -2896,9 +2896,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;