Death Chests

This commit is contained in:
dingo
2025-12-17 13:22:21 -05:00
parent 353de811f6
commit 69c5b38098
11 changed files with 212 additions and 6 deletions
+5
View File
@@ -3,6 +3,7 @@ extends CanvasLayer
@onready var name_label = $Control/HBoxContainer/LeftPanel/CharacterInfo/NameLabel
@onready var level_label = $Control/HBoxContainer/LeftPanel/CharacterInfo/LevelLabel
@onready var xp_bar = $Control/HBoxContainer/LeftPanel/CharacterInfo/XPBar
@onready var gold_label = $Control/HBoxContainer/LeftPanel/CharacterInfo/GoldLabel
@onready var str_value = $Control/HBoxContainer/LeftPanel/StatsPanel/StrValue
@onready var int_value = $Control/HBoxContainer/LeftPanel/StatsPanel/IntValue
@@ -46,6 +47,10 @@ func _update_ui():
xp_bar.max_value = c.xp_next
xp_bar.value = c.xp
# Gold display
if gold_label:
gold_label.text = "Gold: %d" % c.get("gold", 0)
str_value.text = str(c.strength)
int_value.text = str(c.intelligence)
wis_value.text = str(c.wisdom)