1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

feat(武器系统): 重构武器升华动画及交互逻辑

- 将sublimateToggled信号拆分为sublimateOpened和sublimateClosed
- 添加武器卡片的hide/show动画效果
- 移除MuyangDog角色中的Volcano武器
- 重置EntityBase中钻石的初始数量为0
- 为CategoryStore添加@tool注解
This commit is contained in:
2026-05-10 12:40:15 +08:00
parent aec1db5088
commit 1b3df9727a
7 changed files with 113 additions and 20 deletions
+12
View File
@@ -7,6 +7,18 @@ func beforeOpen(_args: Array = []):
for weapon in UIState.player.weapons:
weapon.show()
weapon.rebuildInfo()
weapon.sublimateOpened.connect(
func():
for w in UIState.player.weapons:
if w != weapon:
w.animator.play("hide")
)
weapon.sublimateClosed.connect(
func():
for w in UIState.player.weapons:
if w != weapon:
w.animator.play("show")
)
UIState.player.weaponStore.remove_child(weapon)
box.add_child(weapon)
func afterClose():