29 lines
642 B
GDScript
29 lines
642 B
GDScript
extends Node2D
|
|
|
|
signal display_finished
|
|
|
|
var dialogue_c02 = preload("res://asset/dialogue/c02.dialogue")
|
|
|
|
|
|
# 在展示界面使用
|
|
func toggle_card(start := true):
|
|
if start:
|
|
$ProPlayer.play("c00_吕萍_蹲下")
|
|
$"李氏赖子房间人影".play()
|
|
else:
|
|
$ProPlayer.stop()
|
|
$"李氏赖子房间人影".stop()
|
|
|
|
var dialog_node
|
|
|
|
# 全屏展示
|
|
func display():
|
|
toggle_card(true)
|
|
# 增加配音
|
|
dialog_node = DialogueManager.show_dialogue_balloon(dialogue_c02, "c02_04_李氏癞子")
|
|
await DialogueManager.dialogue_ended
|
|
display_finished.emit()
|
|
|
|
func _exit_tree() -> void:
|
|
if is_instance_valid(dialog_node):
|
|
dialog_node.queue_free() |