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

feat(UI): 添加技能图标显示功能

在UI中添加技能图标容器,并为每个武器创建对应的技能图标
初始化武器冷却计时器,修复武器冷却时间未设置的问题
This commit is contained in:
2025-09-06 15:24:50 +08:00
parent e4d04ff599
commit 4d8969c47d
5 changed files with 30 additions and 3 deletions
+4
View File
@@ -111,6 +111,10 @@ func _ready():
else:
UIState.energyPercent.setCurrent(newEnergy)
)
for i in weapons:
var icon: SkillIcon = preload("res://components/Abstracts/SkillIconBase.tscn").instantiate()
icon.weapon = i
UIState.skillIconContainer.add_child(icon)
else:
currentFocusedBoss = get_tree().get_nodes_in_group("players")[0]
applyLevel()