makes the tooltip expand to fit text if its long

This commit is contained in:
Nathan Singer 2025-04-29 12:39:09 -04:00
parent c125d1b70a
commit 1a5372f713
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,5 @@ func _ready() -> void:
mana_symbols = JSON.parse_string(file.get_as_text()) mana_symbols = JSON.parse_string(file.get_as_text())
file.close() file.close()
set_use_bbcode(true)
EventBus.connect("card_on_hover", _set_tip_text) EventBus.connect("card_on_hover", _set_tip_text)
EventBus.connect("card_on_unhover", _clear_tip_text) EventBus.connect("card_on_unhover", _clear_tip_text)

View File

@ -50,6 +50,8 @@ script = ExtResource("2_pqag1")
[node name="RichTextLabel" type="RichTextLabel" parent="UI/BigBar/Items/MenuArea/VBoxContainer"] [node name="RichTextLabel" type="RichTextLabel" parent="UI/BigBar/Items/MenuArea/VBoxContainer"]
custom_minimum_size = Vector2(0, 230) custom_minimum_size = Vector2(0, 230)
layout_mode = 2 layout_mode = 2
bbcode_enabled = true
fit_content = true
script = ExtResource("2_d43bn") script = ExtResource("2_d43bn")
[node name="ChatArea" type="PanelContainer" parent="UI/BigBar/Items"] [node name="ChatArea" type="PanelContainer" parent="UI/BigBar/Items"]