Compact battle command notice

This commit is contained in:
2026-06-21 09:23:45 +09:00
parent 5885cea521
commit 34f5a79bd9
2 changed files with 16 additions and 11 deletions

View File

@@ -588,6 +588,10 @@ func _check_battle_start_notice_sequence(failures: Array[String]) -> void:
var notice_right_edge: float = scene.objective_notice_panel.position.x + scene.objective_notice_panel.size.x
if notice_right_edge > BattleSceneScript.SIDE_PANEL_POSITION.x - 12.0:
failures.append("battle start notice should not sit behind the side information panel: %s" % str(scene.objective_notice_panel.get_rect()))
if scene.objective_notice_panel.size.x > 500.0 or scene.objective_notice_panel.size.y > 150.0:
failures.append("battle start notice should stay compact instead of covering the battlefield: %s" % str(scene.objective_notice_panel.get_rect()))
if str(scene.objective_notice_panel.get_meta("panel_style_variant", "")) != "hud_readable":
failures.append("battle start notice should use the dark readable HUD backing, not a bright parchment block")
if scene.objective_notice_panel.z_index < 60:
failures.append("battle start notice should stay above ordinary HUD layers")
if scene.objective_notice_icon_strip == null or scene.objective_notice_icon_strip.get_child_count() < 3: