1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Merge pull request #91932 from dalexeev/editor-fix-tileset-categories-and-tooltips

Editor: Fix categories and tooltips in `TileSet` editor
This commit is contained in:
Rémi Verschelde
2024-05-14 12:07:27 +02:00
6 changed files with 27 additions and 22 deletions

View File

@@ -3699,12 +3699,8 @@ void EditorHelpBit::set_custom_text(const String &p_type, const String &p_name,
}
}
void EditorHelpBit::prepend_description(const String &p_text) {
if (help_data.description.is_empty()) {
help_data.description = p_text;
} else {
help_data.description = p_text + "\n" + help_data.description;
}
void EditorHelpBit::set_description(const String &p_text) {
help_data.description = p_text;
if (is_inside_tree()) {
_update_labels();