Death Chests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user