Frame opening story beat artwork

This commit is contained in:
2026-06-20 06:39:27 +09:00
parent 1fe0554b1f
commit f7c7b9b9e3
3 changed files with 83 additions and 27 deletions

View File

@@ -91,6 +91,9 @@ func _check_title_menu_start_load_and_settings(failures: Array[String]) -> void:
failures.append("title story feature should name the first opening beat")
if feature_body == null or not feature_body.text.contains("조조") or not feature_body.text.contains("황건의 난"):
failures.append("title story feature should summarize the first opening beat in Korean")
var feature_frame := title_story_feature.find_child("TitleStoryFeatureImageFrame", true, false) as PanelContainer
if feature_frame == null or not bool(feature_frame.get_meta("generated_panel_texture", false)):
failures.append("title story feature artwork should sit inside a generated frame")
var title_story_strip: Node = null
if scene.title_screen_root != null:
title_story_strip = scene.title_screen_root.find_child("TitleStoryPreviewStrip", true, false)
@@ -103,8 +106,13 @@ func _check_title_menu_start_load_and_settings(failures: Array[String]) -> void:
for story_card in story_cards:
if not story_card is PanelContainer:
failures.append("title story preview cards should use generated panel frames")
elif not bool((story_card as PanelContainer).get_meta("generated_panel_texture", false)):
failures.append("title story preview card should use a generated panel texture")
var story_frame := (story_card as Node).find_child("TitleStoryPreviewImageFrame", true, false) as PanelContainer
var story_image := (story_card as Node).find_child("TitleStoryPreviewImage", true, false) as TextureRect
var story_label := (story_card as Node).find_child("TitleStoryPreviewLabel", true, false) as Label
if story_frame == null or not bool(story_frame.get_meta("generated_panel_texture", false)):
failures.append("title story preview image should sit inside a generated frame")
if story_image == null or story_image.texture == null:
failures.append("title story preview card should load generated artwork")
elif story_image.custom_minimum_size.y < 42.0:
@@ -200,10 +208,18 @@ func _check_title_menu_start_load_and_settings(failures: Array[String]) -> void:
var current_index := 0
for opening_story_card in opening_story_cards:
var card_node := opening_story_card as Node
var beat_frame := card_node.find_child("OpeningStoryBeatImageFrame", true, false) as PanelContainer
var beat_seal := card_node.find_child("OpeningStoryBeatSeal", true, false) as PanelContainer
var beat_image := card_node.find_child("OpeningStoryBeatImage", true, false) as TextureRect
var beat_label := card_node.find_child("OpeningStoryBeatLabel", true, false) as Label
if beat_frame == null or not bool(beat_frame.get_meta("generated_panel_texture", false)):
failures.append("opening story beat image should sit inside a generated frame")
if beat_seal == null or not bool(beat_seal.get_meta("generated_panel_texture", false)):
failures.append("opening story beat should use a generated seal number")
if beat_image == null or beat_image.texture == null:
failures.append("opening story beat card should load generated artwork")
elif beat_image.custom_minimum_size.x < 116.0:
failures.append("opening story beat artwork should stay readable in the strip: %s" % str(beat_image.custom_minimum_size))
if beat_label == null or beat_label.text.strip_edges().is_empty():
failures.append("opening story beat card should name its scene")
if bool(card_node.get_meta("current_story_beat", false)):