You've already forked godot
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user