fixing text not being properly displayed on cards

This commit is contained in:
betalars 2023-11-02 12:56:15 +01:00
parent 17516068df
commit 7891dc25e9
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ class_name Collectable_Ui
is_story = story
if not story:
$Panel/Content/Buttons/VBoxContainer/collect_or_listen.text = "Order Thoughts"
else:
$Panel/Content/Buttons/VBoxContainer/collect_or_listen.text = "Collect Memento"
@export var has_stage: bool = false:
set(focused):
print("set focus of card to ", focused)
@ -82,9 +84,9 @@ func _ready():
#$Panel/Content/Buttons/VBoxContainer/skip.visible = State.allow_skipping
if visible and not collapsed: _show_buttons()
item_name = item_name
content_notes = content_notes
is_story = is_story
item_name = item_name
func _hide_buttons():
if is_inside_tree():