Improve narration dialogue record card
This commit is contained in:
@@ -808,6 +808,16 @@ func _check_first_battle_rendered_text_fit(failures: Array[String]) -> void:
|
||||
if not scene.briefing_label.tooltip_text.contains("적은 마을과 성채"):
|
||||
failures.append("opening briefing body should keep the full briefing text in its tooltip")
|
||||
|
||||
scene.active_dialogue_lines = scene._normalized_dialogue_lines([{"speaker": "", "text": "천하가 어지러워지던 때, 젊은 조조는 먼저 무너지는 고을의 소식을 들었다."}])
|
||||
scene.active_dialogue_index = 0
|
||||
scene._render_dialogue_line()
|
||||
if scene.dialogue_portrait_texture == null or not scene.dialogue_portrait_texture.visible or scene.dialogue_portrait_texture.texture == null:
|
||||
failures.append("narration dialogue should use the current battlefield image as a record card instead of an empty portrait slot")
|
||||
elif scene.dialogue_portrait_texture.stretch_mode != TextureRect.STRETCH_KEEP_ASPECT_COVERED:
|
||||
failures.append("narration record card should cover the portrait slot without black empty space")
|
||||
if scene.dialogue_portrait_label == null or not scene.dialogue_portrait_label.visible or not scene.dialogue_portrait_label.text.contains("전황"):
|
||||
failures.append("narration record card should label the slot as a battle record: %s" % ("" if scene.dialogue_portrait_label == null else scene.dialogue_portrait_label.text))
|
||||
|
||||
var briefing: Dictionary = scene.state.get_briefing()
|
||||
var dialogue_lines: Array = []
|
||||
dialogue_lines.append_array(briefing.get("camp_dialogue", []))
|
||||
|
||||
Reference in New Issue
Block a user