1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-07 12:17:12 +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
+4 -1
View File
@@ -89,7 +89,10 @@ func startSingleplayerGame():
), OutGameStorage.upgradableFieldsValue)
UIState.player = EntityBase.generatePlayer(playerNameInput.text, selectedCharacter, extras)
WorldManager.rootNode.spawnWave(Vector2.ZERO)
UIState.setPanel("CompilingTip")
if buildingShader:
UIState.setPanel("CompilingTip")
else:
UIState.setPanel("SelectInitialFeed")
func _ready():
historyStack = Composables.useHistoryStack(playerNameInput)