You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Add descriptions for tile properties
This commit is contained in:
@@ -2659,6 +2659,10 @@ String EditorHelpBit::get_class_description(const StringName &p_class_name) cons
|
||||
}
|
||||
|
||||
String EditorHelpBit::get_property_description(const StringName &p_class_name, const StringName &p_property_name) const {
|
||||
if (!custom_description.is_empty()) {
|
||||
return custom_description;
|
||||
}
|
||||
|
||||
if (doc_property_cache.has(p_class_name) && doc_property_cache[p_class_name].has(p_property_name)) {
|
||||
return doc_property_cache[p_class_name][p_property_name];
|
||||
}
|
||||
@@ -2906,8 +2910,9 @@ void EditorHelpTooltip::parse_tooltip(const String &p_text) {
|
||||
set_text(formatted_text);
|
||||
}
|
||||
|
||||
EditorHelpTooltip::EditorHelpTooltip(const String &p_text) {
|
||||
EditorHelpTooltip::EditorHelpTooltip(const String &p_text, const String &p_custom_description) {
|
||||
tooltip_text = p_text;
|
||||
custom_description = p_custom_description;
|
||||
|
||||
get_rich_text()->set_custom_minimum_size(Size2(360 * EDSCALE, 0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user