1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

feat: 添加暂停面板类名并优化字段显示逻辑

修复TipBox销毁时的动画冲突问题
重构游戏重启逻辑以包含库存保存
移除GameOver面板中的重复库存保存代码
优化UIState中的字段显示控制和提示清除功能
This commit is contained in:
2026-05-05 07:04:32 +08:00
parent cc103f274b
commit 14deb2de71
6 changed files with 32 additions and 13 deletions
-2
View File
@@ -9,7 +9,5 @@ func beforeOpen(args: Array = []):
audio.play()
var reasonTemplate = MathTool.randomChoiceFrom(GameRule.deadReasons)
deadreason.text = ("[color=gray]" + reasonTemplate + "凶手是[b]%s[/b]的[b]%s[/b]。[/color]") % args
for item in OutGameStorage.inventory:
OutGameStorage.inventory[item] += UIState.player.inventory[item]
func afterOpen(_args: Array = []):
gameControl.enable()
+1
View File
@@ -1,5 +1,6 @@
@tool
extends FullscreenPanelBase
class_name PausePanel
@onready var gameControl: GameControl = $%gameControl