Improve opening prologue caption readability

This commit is contained in:
2026-06-20 12:45:35 +09:00
parent 1b27275eda
commit 8febd9f917
3 changed files with 54 additions and 40 deletions

View File

@@ -3876,8 +3876,12 @@ func _check_opening_prologue_presentation(failures: Array[String]) -> void:
if caption_panel.custom_minimum_size.y > 150.0:
failures.append("opening caption should stay compact instead of covering the story art: %s" % str(caption_panel.custom_minimum_size))
_check_panel_uses_generated_texture(failures, caption_panel, "opening cinematic caption generated frame")
if str(caption_panel.get_meta("panel_texture_key", "")) != "story_scroll":
failures.append("opening caption should use the generated story scroll surface")
if str(caption_panel.get_meta("panel_style_variant", "")) != "cinematic_caption" or str(caption_panel.get_meta("panel_texture_key", "")) != "lacquer":
failures.append("opening caption should use a dark generated lacquer surface so text stays visible")
if scene.opening_prologue_title_label != null and scene.opening_prologue_title_label.get_theme_color("font_color").get_luminance() < 0.55:
failures.append("opening title should use bright text over the story image")
if scene.opening_prologue_body_label != null and scene.opening_prologue_body_label.get_theme_color("font_color").get_luminance() < 0.55:
failures.append("opening body should use bright text over the story image")
if scene.opening_prologue_next_button == null:
failures.append("opening prologue should expose a next button")
else: