Show selected unit merit progress

This commit is contained in:
2026-06-21 04:01:56 +09:00
parent a7dfa9bb04
commit b71c4d1dfc
2 changed files with 22 additions and 8 deletions

View File

@@ -3526,8 +3526,12 @@ func _check_hud_focus_text(failures: Array[String]) -> void:
failures.append("selected HUD should expose Cao Cao HP through a resource bar")
if scene.hud_unit_mp_bar == null or int(scene.hud_unit_mp_bar.value) != int(cao_cao.get("mp", 0)) or int(scene.hud_unit_mp_bar.max_value) != int(cao_cao.get("max_mp", 0)):
failures.append("selected HUD should expose Cao Cao MP through a resource bar")
if scene.hud_unit_exp_bar == null or int(scene.hud_unit_exp_bar.value) != int(cao_cao.get("exp", 0)) or int(scene.hud_unit_exp_bar.max_value) != BattleStateScript.EXP_LEVEL:
failures.append("selected HUD should expose Cao Cao merit through a resource bar")
if not scene.hud_unit_hp_bar.tooltip_text.contains("병력") or not scene.hud_unit_hp_bar.tooltip_text.contains("군기: 조조"):
failures.append("selected HP bar tooltip should preserve unit detail: %s" % scene.hud_unit_hp_bar.tooltip_text)
if not scene.hud_unit_exp_bar.tooltip_text.contains("전공") or not scene.hud_unit_exp_bar.tooltip_text.contains("군기: 조조"):
failures.append("selected merit bar tooltip should preserve unit detail: %s" % scene.hud_unit_exp_bar.tooltip_text)
var portrait_team_seal := _find_descendant_by_name(scene.hud_unit_portrait_panel, "HudUnitTeamSeal")
if portrait_team_seal == null:
failures.append("selected unit portrait should overlay a generated team seal")
@@ -3543,10 +3547,10 @@ func _check_hud_focus_text(failures: Array[String]) -> void:
failures.append("selected unit portrait class crest frame missing")
else:
_check_panel_uses_generated_texture(failures, portrait_class_panel, "selected portrait class crest frame")
if _count_descendants_by_name(scene.hud_unit_info_column, "HudUnitResourceIcon") < 2:
failures.append("selected unit resource rows should use generated HP/MP icons")
if scene.selected_label.text.contains("병력") or scene.selected_label.text.contains("기력"):
failures.append("selected label should not duplicate HP/MP bars: %s" % scene.selected_label.text)
if _count_descendants_by_name(scene.hud_unit_info_column, "HudUnitResourceIcon") < 3:
failures.append("selected unit resource rows should use generated HP/MP/merit icons")
if scene.selected_label.text.contains("병력") or scene.selected_label.text.contains("기력") or scene.selected_label.text.contains("전공"):
failures.append("selected label should not duplicate HP/MP/merit bars: %s" % scene.selected_label.text)
if scene.selected_label.text.contains("군령:"):
failures.append("selected label should move command availability into visual badges: %s" % scene.selected_label.text)
if scene.inventory_label == null or not scene.inventory_label.text.begins_with("군수:") or scene.inventory_label.text.contains("소모품"):