Improve battle text readability

This commit is contained in:
2026-06-20 21:28:10 +09:00
parent d55fd7edbc
commit 64bcfd2b7d
3 changed files with 117 additions and 6 deletions

View File

@@ -584,6 +584,12 @@ func _check_battle_start_notice_sequence(failures: Array[String]) -> void:
failures.append("battle start notice should carry compact tactical marker hints: %s" % start_notice_text)
elif start_notice_text.contains("(20") or start_notice_text.contains("(21") or start_notice_text.contains(",1"):
failures.append("battle start notice should not expose raw grid coordinates: %s" % start_notice_text)
if scene.objective_notice_panel != null:
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.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:
failures.append("battle start notice should use generated objective, warning, and marker icons")
else: