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

@@ -292,4 +292,4 @@ export const EAnmConf: Record<number, IEndAnm> = {
9001:{uuid:9001,path:"atked",loop:false,time:0},
};
export const CanSelectSkills = [6001, 6002, 6005, 6100, 6101, 6102, 6103];
export const CanSelectSkills = [6002, 6004, 6003, 6100];

View File

@@ -122,7 +122,7 @@ export interface heroInfo {
info: string; // 描述文案
}
export const CanSelectHeros = [5001, 5002, 5005, 5007, 5008, 5009, 5010];
export const CanSelectHeros = [5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008];
export const HeroInfo: Record<number, heroInfo> = {
// ========== 英雄角色 ==========

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()