mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
refactor(UI): 清理武器展示界面的冗余代码和配置
移除武器展示界面中不必要的可见性控制代码,统一通过脚本管理可见性 简化场景文件中的冗余属性设置,保持与脚本逻辑一致
This commit is contained in:
@@ -16,7 +16,7 @@ func _ready():
|
||||
if autoFree:
|
||||
animator.play("show")
|
||||
await animator.animation_finished
|
||||
await TickTool.millseconds(GameRule.itemShowLifetime) # 等待几秒后自动隐藏
|
||||
await TickTool.millseconds(GameRule.itemShowLifetime)
|
||||
animator.play("hide")
|
||||
await animator.animation_finished
|
||||
queue_free()
|
||||
|
||||
@@ -22,11 +22,7 @@ func _ready():
|
||||
soulShow.count = weaponInstance.soulLevel
|
||||
if operation == Operation.GET:
|
||||
operationLabel.text = "获得武器"
|
||||
avatarRect.visible = true
|
||||
nameLabel.visible = true
|
||||
soulShow.visible = false
|
||||
else:
|
||||
operationLabel.text = "提炼灵魂"
|
||||
avatarRect.visible = false
|
||||
nameLabel.visible = false
|
||||
soulShow.visible = true
|
||||
|
||||
Reference in New Issue
Block a user