feat(boss): HUD Boss 阶段提示 + boss_design.md 现状更新为已实现

This commit is contained in:
2026-07-23 10:32:27 +08:00
parent 3480255a5a
commit e06cdf8948
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -218,6 +218,7 @@ func _subscribe_events() -> void:
EventBus.subscribe(EventID.SPELL_DEPTH_EXCEEDED, _on_spell_depth_exceeded)
EventBus.subscribe(EventID.CHARGE_STATE_CHANGED, _on_charge_state_changed)
EventBus.subscribe(EventID.CHARGE_FIRED, _on_charge_fired)
EventBus.subscribe(EventID.BOSS_PHASE_CHANGED, _on_boss_phase_changed)
PlayerStats.stats_changed.connect(_on_stats_changed)
func _setup_hud() -> void:
@@ -741,6 +742,10 @@ func _on_charge_fired(_payload: Dictionary) -> void:
_lbl_charge.text = tr("UI_CHARGE_DONE")
_lbl_status.text = tr("STATUS_CHARGE_FIRED")
func _on_boss_phase_changed(payload: Dictionary) -> void:
if _lbl_status:
_lbl_status.text = "Boss 阶段 %d" % int(payload.get("phase", 0))
func _on_spell_depth_exceeded(_payload: Dictionary) -> void:
_lbl_status.text = tr("STATUS_DEPTH") % SpellEvaluator.MAX_TRIGGER_DEPTH
_lbl_status.modulate = Color.YELLOW