From 09e93080219396267a25aa0cc2ec3689b20a6044 Mon Sep 17 00:00:00 2001 From: panw Date: Mon, 25 May 2026 09:11:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(map):=20=E4=BF=AE=E5=A4=8D=E5=8D=A1?= =?UTF-8?q?=E6=B1=A0=E7=AD=89=E7=BA=A7=E6=A0=87=E8=AF=86=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增卡池等级节点的显示控制逻辑,根据当前池等级激活对应标识节点 --- assets/script/game/map/HInfoComp.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index 8249c41a..a57ef9dc 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -167,6 +167,20 @@ export class HInfoComp extends CCComp { this.lv_node.string = `Lv.${currentLv}`; } + // ---- 卡池等级标识 ---- + if (this.pool_lv_node) { + const poolLvStr = `lv${this.model.pool_lv ?? 1}`; + this.pool_lv_node.children.forEach(child => { + if (child.name === "light") { + child.active = false; + } else if (child.name === "bg") { + child.active = true; + } else { + child.active = (child.name === poolLvStr); + } + }); + } + // ---- 图标动画(仅在 UUID 变化时重新加载) ---- const heroUuid = this.model.hero_uuid ?? 0; if (heroUuid !== this.iconHeroUuid) {