Reduce battlefield cell info clutter

This commit is contained in:
2026-06-20 08:39:35 +09:00
parent 78430420b5
commit 7e294194ae
2 changed files with 46 additions and 12 deletions

View File

@@ -4660,20 +4660,28 @@ func _check_terrain_and_unit_presentation(failures: Array[String]) -> void:
scene._update_cell_info()
if scene.cell_info_label == null or not scene.cell_info_label.text.contains("목표 성채 장악") or not scene.cell_info_label.text.contains("회복 +8"):
failures.append("castle objective cell info should expose capture label and healing: %s" % scene.cell_info_label.text)
if scene.cell_info_label != null and (scene.cell_info_label.text.contains("") or scene.cell_info_label.text.contains("방+")):
failures.append("visible cell info should leave terrain numbers to the tooltip: %s" % scene.cell_info_label.text)
if scene.cell_info_label != null and not scene.cell_info_label.tooltip_text.contains("21,2"):
failures.append("castle objective cell info should keep coordinates in the hover tooltip: %s" % scene.cell_info_label.tooltip_text)
if scene.cell_info_panel == null or not scene.cell_info_panel.visible:
failures.append("cell info panel should be visible for a hovered battlefield cell")
if scene.cell_info_icon == null or str(scene.cell_info_icon.get_meta("icon_kind", "")) != "objective":
failures.append("castle objective cell info should switch the side chip to the objective icon")
if scene.cell_info_label.text.contains("20,2"):
failures.append("visible cell info should stay compact and leave coordinates to tooltip/badge: %s" % scene.cell_info_label.text)
scene.hover_cell = Vector2i(4, 2)
scene._update_cell_info()
if scene.cell_info_label == null or not scene.cell_info_label.text.contains("표식 북숲 보급고"):
failures.append("side event marker cell info should expose the supply label: %s" % scene.cell_info_label.text)
if scene.cell_info_icon == null or str(scene.cell_info_icon.get_meta("icon_kind", "")) != "item":
failures.append("supply marker cell info should switch the side chip to an item icon")
scene.hover_cell = Vector2i(4, 6)
scene._update_cell_info()
if scene.cell_info_label == null or not scene.cell_info_label.text.contains("표식 유인선"):
failures.append("tactical lure marker cell info should expose the marker label: %s" % scene.cell_info_label.text)
if scene.cell_info_icon == null or str(scene.cell_info_icon.get_meta("icon_kind", "")) != "tactic":
failures.append("tactical lure cell info should switch the side chip to a tactic icon")
if scene.state.get_event_marker_kind(Vector2i(4, 6)) != "tactic":
failures.append("tactical lure marker should expose tactic kind")
scene.hover_cell = Vector2i(-1, -1)