From ef9dc05604373852e82b5076e9cff98699f6f3e2 Mon Sep 17 00:00:00 2001 From: Wickedness Date: Sun, 21 Jun 2026 04:52:10 +0900 Subject: [PATCH] Clarify unit overview row tooltips --- scripts/scenes/battle_scene.gd | 2 +- tools/smoke_visual_assets.gd | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/scenes/battle_scene.gd b/scripts/scenes/battle_scene.gd index e094a47..5996cb1 100644 --- a/scripts/scenes/battle_scene.gd +++ b/scripts/scenes/battle_scene.gd @@ -10722,7 +10722,7 @@ func _make_side_unit_overview_row(unit: Dictionary) -> HBoxContainer: status_label.custom_minimum_size = Vector2(52, SIDE_UNIT_OVERVIEW_ROW_SIZE.y) status_label.horizontal_alignment = HORIZONTAL_ALIGNMENT_RIGHT status_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER - status_label.tooltip_text = _battle_unit_action_state_tooltip(unit) + status_label.tooltip_text = "%s\n%s" % [_battle_unit_action_state_tooltip(unit), tooltip_text] _apply_label_style(status_label, UI_PARCHMENT_TEXT, 12) row.add_child(status_label) return row diff --git a/tools/smoke_visual_assets.gd b/tools/smoke_visual_assets.gd index 14e6e44..d14e9f9 100644 --- a/tools/smoke_visual_assets.gd +++ b/tools/smoke_visual_assets.gd @@ -3579,6 +3579,12 @@ func _check_hud_focus_text(failures: Array[String]) -> void: _check_panel_uses_flat_readable_backing(failures, scene.side_unit_overview_panel, "side unit overview readable panel") if scene.side_unit_overview_rows == null or scene.side_unit_overview_rows.get_child_count() < 2: failures.append("empty battle HUD should list available forces in the side panel") + else: + var ally_overview_tooltips := _collect_child_tooltips(scene.side_unit_overview_rows) + if not ally_overview_tooltips.contains("클릭하면 이 장수를 선택"): + failures.append("ally overview rows should explain click-to-select through tooltips: %s" % ally_overview_tooltips) + if not ally_overview_tooltips.contains("아직 명령할 수 있습니다.") or not ally_overview_tooltips.contains("클릭하면"): + failures.append("ally overview action state tooltip should preserve action and click hints: %s" % ally_overview_tooltips) if scene.side_unit_overview_status_label == null or not scene.side_unit_overview_status_label.text.contains("명령"): failures.append("ally overview status should summarize ready and completed units: %s" % ("" if scene.side_unit_overview_status_label == null else scene.side_unit_overview_status_label.text)) if scene.side_unit_overview_ally_button == null or scene.side_unit_overview_enemy_button == null: @@ -3602,6 +3608,10 @@ func _check_hud_focus_text(failures: Array[String]) -> void: failures.append("enemy overview tab should stay visually selected") if scene.side_unit_overview_rows == null or scene.side_unit_overview_rows.get_child_count() < 4: failures.append("enemy overview tab should list visible enemy forces") + else: + var enemy_overview_tooltips := _collect_child_tooltips(scene.side_unit_overview_rows) + if not enemy_overview_tooltips.contains("클릭하면 위치로 이동"): + failures.append("enemy overview rows should explain click-to-focus through tooltips: %s" % enemy_overview_tooltips) scene._on_side_unit_overview_row_pressed("yellow_turban_1") if scene.state.selected_unit_id != "": failures.append("enemy overview row click should focus without selecting enemy units: %s" % scene.state.selected_unit_id)