extends Control @onready var player: BattlePlayer = get_parent() @onready var healthLabel: Label = $Container/Health @onready var focusLabel: Label = $Container/MarginContainer/Focus func initialize(): player.health_changed.connect(health_changed) player.focus_changed.connect(focus_changed) healthLabel.text = "HP: %s / %s" % [player.health, player.max_health] focusLabel.text = "FP: %s / %s" % [player.focus, player.max_focus] func health_changed(old, new): healthLabel.text = "HP: %s / %s" % [player.health, player.max_health] func focus_changed(old, new): focusLabel.text = "FP: %s / %s" % [player.focus, player.max_focus]