feat(配置): 更新可选技能和英雄列表并添加技能名称显示

- 修改CanSelectSkills和CanSelectHeros数组内容
- 在HInfoComp中添加技能名称显示功能
This commit is contained in:
panw
2026-01-07 17:02:05 +08:00
parent 9c254551a9
commit 6c681803ae
3 changed files with 6 additions and 2 deletions

View File

@@ -85,7 +85,11 @@ export class HInfoComp extends CCComp {
let skill1=SkillSet[HeroInfo[uuid].skills[0]]
let skill2=SkillSet[HeroInfo[uuid].skills[1]]
this.skill1_node.getChildByName("info").getChildByName("Label").getComponent(Label).string=skill1.info
this.skill1_node.getChildByName("info").getChildByName("name").getComponent(Label).string=skill1.name
this.skill2_node.getChildByName("info").getChildByName("Label").getComponent(Label).string=skill2.info
this.skill2_node.getChildByName("info").getChildByName("name").getComponent(Label).string=skill2.name
this.name_node.getComponent(Label).string=HeroInfo[uuid].name
this.type_node.getComponent(Label).string=HTypeName[HeroInfo[uuid].type]
this.ap_node.getChildByName("num").getComponent(Label).string=HeroInfo[uuid].ap.toString()