extends Control # HUD — displays player health, perception mode, time, etc. @onready var health_label: Label = $MarginContainer/VBoxContainer/HealthLabel @onready var perception_label: Label = $MarginContainer/VBoxContainer/PerceptionLabel @onready var time_label: Label = $MarginContainer/VBoxContainer/TimeLabel func _ready() -> void: print("HUD: Initialized") # Update HUD from snapshot data func update_from_hud_data(data: Dictionary) -> void: # Update perception mode display if data.has("perception_mode"): perception_label.text = UIStrings.get_text("hud.mode_label") + ": " + data.perception_mode.capitalize() # Update time display (per D-031) if data.has("time"): time_label.text = UIStrings.get_text("hud.time_label") + ": " + data.time # Update player health (from player data, not hud_data) func update_health(health: int) -> void: health_label.text = UIStrings.get_text("hud.health_label") + ": " + str(health)