From 1a5372f713618bf1b21572296a3a28a738e9edd4 Mon Sep 17 00:00:00 2001 From: Nathan Singer Date: Tue, 29 Apr 2025 12:39:09 -0400 Subject: [PATCH] makes the tooltip expand to fit text if its long --- scenes/tooltip/card_text.gd | 2 -- tabletop.tscn | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/tooltip/card_text.gd b/scenes/tooltip/card_text.gd index 99fd6e4..b95041d 100644 --- a/scenes/tooltip/card_text.gd +++ b/scenes/tooltip/card_text.gd @@ -35,7 +35,5 @@ func _ready() -> void: mana_symbols = JSON.parse_string(file.get_as_text()) file.close() - set_use_bbcode(true) - EventBus.connect("card_on_hover", _set_tip_text) EventBus.connect("card_on_unhover", _clear_tip_text) diff --git a/tabletop.tscn b/tabletop.tscn index 0b76c3a..feae2bb 100644 --- a/tabletop.tscn +++ b/tabletop.tscn @@ -50,6 +50,8 @@ script = ExtResource("2_pqag1") [node name="RichTextLabel" type="RichTextLabel" parent="UI/BigBar/Items/MenuArea/VBoxContainer"] custom_minimum_size = Vector2(0, 230) layout_mode = 2 +bbcode_enabled = true +fit_content = true script = ExtResource("2_d43bn") [node name="ChatArea" type="PanelContainer" parent="UI/BigBar/Items"]