diff --git a/scene/entity/closeup.gd b/scene/entity/closeup.gd index a2eccef5..7f3c2f2f 100644 --- a/scene/entity/closeup.gd +++ b/scene/entity/closeup.gd @@ -35,7 +35,7 @@ func display() -> void: return if packed_scene: if on_display_hide_hud and SceneManager.get_ground().display_hud: - SceneManager.get_prop_hud().hide_hud() + SceneManager.toggle_hud_display(false) if on_display_change_volumn: get_tree().call_group(GlobalConfig.GROUP_GROUND_SFX, "change_volumn_db" , on_display_changed_volumn_db) get_tree().call_group(GlobalConfig.GROUP_GROUND_SFX2D, "change_volumn_db" , on_display_changed_volumn_db) @@ -53,7 +53,7 @@ func display() -> void: func _exit(arg = null): if current_child: if on_display_hide_hud and SceneManager.get_ground().display_hud: - SceneManager.get_prop_hud().display_hud() + SceneManager.toggle_hud_display(true) if on_display_change_volumn: get_tree().call_group(GlobalConfig.GROUP_GROUND_SFX, "reset_volumn_to_default") get_tree().call_group(GlobalConfig.GROUP_GROUND_SFX2D, "reset_volumn_to_default") diff --git a/scene/little_game/八音盒/八音盒.gd b/scene/little_game/八音盒/八音盒.gd index 51c56562..9e58c179 100644 --- a/scene/little_game/八音盒/八音盒.gd +++ b/scene/little_game/八音盒/八音盒.gd @@ -265,7 +265,7 @@ func _chechout_stage(s: int, play_sfx := true) -> void: var display_handle_outline = false if s >= 3: # 隐藏道具栏 - SceneManager.get_prop_hud().hide_hud() + SceneManager.toggle_hud_display(false) # 禁止退出特写 var closeup = get_parent() as Closeup2D if closeup: @@ -337,7 +337,7 @@ func _unhandled_input(event: InputEvent) -> void: if stage == 3: # 摇把手阶段不可退出 return - SceneManager.get_prop_hud().display_hud() + SceneManager.toggle_hud_display(true) exit.emit(false) diff --git a/scene/little_game/弹珠游戏/弹珠游戏.gd b/scene/little_game/弹珠游戏/弹珠游戏.gd index cbcaf796..01039c58 100644 --- a/scene/little_game/弹珠游戏/弹珠游戏.gd +++ b/scene/little_game/弹珠游戏/弹珠游戏.gd @@ -75,7 +75,7 @@ var shooting = false func checkout_round(r: int): if r == 0: # 游戏开始,隐藏 hud - SceneManager.get_prop_hud().hide_hud() + SceneManager.toggle_hud_display(false) round_id = r # 关闭所有碰撞 for i in range(3): @@ -263,7 +263,7 @@ func game_win() -> void: var scene = DialogueManager.show_dialogue_balloon_scene(dialog_balloon_scene, dialogue_c02, "c02_弹珠游戏4") await scene.ball_dialogue_ended await Util.wait(3.0) - SceneManager.get_prop_hud().display_hud() + SceneManager.toggle_hud_display(true) exit.emit(true)