Add title story preview strip
This commit is contained in:
@@ -74,6 +74,22 @@ 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_strip: Node = null
|
||||
if scene.title_screen_root != null:
|
||||
title_story_strip = scene.title_screen_root.find_child("TitleStoryPreviewStrip", true, false)
|
||||
if title_story_strip == null:
|
||||
failures.append("title screen should preview the four generated opening story panels")
|
||||
else:
|
||||
var story_cards: Array = title_story_strip.find_children("TitleStoryPreviewCard*", "", true, false)
|
||||
if story_cards.size() != 4:
|
||||
failures.append("title story preview should expose four story beats: %d" % story_cards.size())
|
||||
for story_card in story_cards:
|
||||
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_image == null or story_image.texture == null:
|
||||
failures.append("title story preview card should load generated artwork")
|
||||
if story_label == null or story_label.text.strip_edges().is_empty():
|
||||
failures.append("title story preview card should name its story beat")
|
||||
if scene.briefing_panel == null or scene.briefing_panel.visible:
|
||||
failures.append("briefing should stay hidden behind the title screen")
|
||||
if scene.title_start_button == null or scene.title_start_button.text != "처음부터 시작":
|
||||
|
||||
Reference in New Issue
Block a user