From 6c681803aec2774cba8eb1c7c98442a53d8a1ea5 Mon Sep 17 00:00:00 2001 From: panw Date: Wed, 7 Jan 2026 17:02:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=85=8D=E7=BD=AE):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=8F=AF=E9=80=89=E6=8A=80=E8=83=BD=E5=92=8C=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=B9=B6=E6=B7=BB=E5=8A=A0=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改CanSelectSkills和CanSelectHeros数组内容 - 在HInfoComp中添加技能名称显示功能 --- assets/script/game/common/config/SkillSet.ts | 2 +- assets/script/game/common/config/heroSet.ts | 2 +- assets/script/game/map/HInfoComp.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 091d06b2..a6fd4141 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -292,4 +292,4 @@ export const EAnmConf: Record = { 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]; diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index 2e1c4443..4859bcbd 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -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 = { // ========== 英雄角色 ========== diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index 880e0c68..258d493d 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -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()