优化balloon在游戏/回忆的不同layer
This commit is contained in:
parent
740620a1d4
commit
214918423d
@ -15,8 +15,9 @@ const CANVAS_LAYER_SETTINGS = 30
|
|||||||
const CANVAS_LAYER_NOTE = 25
|
const CANVAS_LAYER_NOTE = 25
|
||||||
const CANVAS_LAYER_MEM_ITEM = 23
|
const CANVAS_LAYER_MEM_ITEM = 23
|
||||||
const CANVAS_LAYER_UX_PANEL = 22
|
const CANVAS_LAYER_UX_PANEL = 22
|
||||||
# dialog
|
# dialog 在游戏场景中使用 CANVAS_LAYER_DIALOG
|
||||||
const CANVAS_LAYER_DIALOG_MEM = 30
|
# 在回忆中使用 CANVAS_LAYER_DIALOG_MEM
|
||||||
|
const CANVAS_LAYER_DIALOG_MEM = 29
|
||||||
const CANVAS_LAYER_DIALOG = 22
|
const CANVAS_LAYER_DIALOG = 22
|
||||||
# main 场景的 UI 层(prop hud、上下mask、notification)
|
# main 场景的 UI 层(prop hud、上下mask、notification)
|
||||||
const CANVAS_LAYER_UI = 21
|
const CANVAS_LAYER_UI = 21
|
||||||
|
@ -154,7 +154,7 @@ func start(
|
|||||||
dialogue_resource: DialogueResource, title: String, extra_game_states: Array = []
|
dialogue_resource: DialogueResource, title: String, extra_game_states: Array = []
|
||||||
) -> void:
|
) -> void:
|
||||||
if extra_game_states.has(GlobalConfig.DIALOG_MEM_LAYER):
|
if extra_game_states.has(GlobalConfig.DIALOG_MEM_LAYER):
|
||||||
pass
|
layer = GlobalConfig.CANVAS_LAYER_DIALOG_MEM
|
||||||
temporary_game_states = [self] + extra_game_states
|
temporary_game_states = [self] + extra_game_states
|
||||||
is_waiting_for_input = false
|
is_waiting_for_input = false
|
||||||
resource = dialogue_resource
|
resource = dialogue_resource
|
||||||
|
@ -12,7 +12,7 @@ func run_clip(card_mode: bool):
|
|||||||
$"李氏赖子房间人影".play()
|
$"李氏赖子房间人影".play()
|
||||||
if not card_mode:
|
if not card_mode:
|
||||||
# 增加配音
|
# 增加配音
|
||||||
dialog_node = DialogueManager.show_dialogue_balloon(dialogue_c02, "c02_04_李氏癞子")
|
dialog_node = DialogueManager.show_dialogue_balloon(dialogue_c02, "c02_04_李氏癞子", [GlobalConfig.DIALOG_MEM_LAYER])
|
||||||
dialog_node.process_mode = Node.PROCESS_MODE_ALWAYS
|
dialog_node.process_mode = Node.PROCESS_MODE_ALWAYS
|
||||||
await DialogueManager.dialogue_ended
|
await DialogueManager.dialogue_ended
|
||||||
display_finished.emit()
|
display_finished.emit()
|
||||||
|
@ -13,7 +13,7 @@ func run_clip(card_mode: bool):
|
|||||||
if not card_mode:
|
if not card_mode:
|
||||||
await Util.wait(3.0)
|
await Util.wait(3.0)
|
||||||
# 增加配音
|
# 增加配音
|
||||||
dialog_node = DialogueManager.show_dialogue_balloon(dialogue_res, "c02_井边疯子对话")
|
dialog_node = DialogueManager.show_dialogue_balloon(dialogue_res, "c02_井边疯子对话", [GlobalConfig.DIALOG_MEM_LAYER])
|
||||||
dialog_node.process_mode = Node.PROCESS_MODE_ALWAYS
|
dialog_node.process_mode = Node.PROCESS_MODE_ALWAYS
|
||||||
await DialogueManager.dialogue_ended
|
await DialogueManager.dialogue_ended
|
||||||
display_finished.emit()
|
display_finished.emit()
|
||||||
|
Loading…
Reference in New Issue
Block a user