1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-08 20:57:13 +08:00

refactor(UI): 优化字段显示逻辑并添加平滑相机移动

将字段显示和隐藏逻辑提取为独立方法
为相机添加位置平滑效果
在游戏重启时重置初始饲料选择状态
This commit is contained in:
2026-05-05 12:24:45 +08:00
parent 7e48372902
commit 11a293378c
5 changed files with 24 additions and 13 deletions
+2
View File
@@ -10,8 +10,10 @@ static func restart(tree: SceneTree):
for item in tree.get_nodes_in_group("items"):
item.queue_free()
UIState.hideFields()
OutGameStorage.saveInventory()
CameraManager.shakeStop()
WorldManager.timeRestart()
StarterPanel.selectingFeed = true
UIState.setPanel("Starter")