feat(配置): 更新可选技能和英雄列表并添加技能名称显示
- 修改CanSelectSkills和CanSelectHeros数组内容 - 在HInfoComp中添加技能名称显示功能
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user