Feature opening story art on title screen

This commit is contained in:
2026-06-20 05:38:53 +09:00
parent 1f7afc9d1b
commit 197b3cb10d
3 changed files with 103 additions and 14 deletions

View File

@@ -74,6 +74,21 @@ func _check_title_menu_start_load_and_settings(failures: Array[String]) -> void:
failures.append("title menu panel should sit on the left side of the cinematic title screen")
if scene.title_caption_label == null or scene.title_caption_label.text != "조조전":
failures.append("title screen should present the campaign title in Korean")
var title_story_feature: Node = null
if scene.title_screen_root != null:
title_story_feature = scene.title_screen_root.find_child("TitleStoryFeaturePanel", true, false)
if title_story_feature == null:
failures.append("title screen should feature a large generated opening story panel")
else:
var feature_image := title_story_feature.find_child("TitleStoryFeatureImage", true, false) as TextureRect
var feature_title := title_story_feature.find_child("TitleStoryFeatureTitle", true, false) as Label
var feature_body := title_story_feature.find_child("TitleStoryFeatureBody", true, false) as Label
if feature_image == null or feature_image.texture == null:
failures.append("title story feature should load generated opening artwork")
if feature_title == null or feature_title.text != "황건의 난":
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 title_story_strip: Node = null
if scene.title_screen_root != null:
title_story_strip = scene.title_screen_root.find_child("TitleStoryPreviewStrip", true, false)