Prevent briefing marker text clipping

This commit is contained in:
2026-06-20 17:20:53 +09:00
parent 81672d5a27
commit 482a88ba4a
2 changed files with 15 additions and 4 deletions

View File

@@ -3987,6 +3987,7 @@ func _check_ancient_ui_theme(failures: Array[String]) -> void:
for expected_summary in ["앞줄 유인", "숨은 콩", "회복 보급"]:
if not marker_visible_text.contains(expected_summary):
failures.append("briefing tactical marker cards should show compact hint %s: %s" % [expected_summary, marker_visible_text])
_check_no_clipped_labels(failures, scene.briefing_tactical_marker_list, "briefing tactical marker card text")
scene._apply_panel_style(scene.result_panel, "result_victory_tablet")
_check_panel_style_fill(failures, scene.result_panel, "victory result panel", Color(0.27, 0.34, 0.28, 0.997))
_check_panel_uses_generated_texture(failures, scene.result_panel, "victory result generated frame")
@@ -4377,6 +4378,16 @@ func _check_rich_text_readability(failures: Array[String], label: RichTextLabel,
failures.append("%s should use the project serif font" % context)
func _check_no_clipped_labels(failures: Array[String], root: Node, context: String) -> void:
if root == null:
failures.append("%s missing for clipped-label check" % context)
return
if root is Label and (root as Label).clip_text:
failures.append("%s should not hard-clip visible Korean text: %s" % [context, (root as Label).text])
for child in root.get_children():
_check_no_clipped_labels(failures, child, context)
func _check_panel_uses_generated_ornament_texture(failures: Array[String], panel: PanelContainer, label: String) -> void:
if panel == null:
failures.append("%s missing" % label)