From 14fdb0efa9cba87e891e75dc55d4a3043c8c6eb7 Mon Sep 17 00:00:00 2001 From: panFD Date: Tue, 28 Jul 2026 23:13:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E4=BF=AE=E5=A4=8D=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E5=8D=A1=E7=89=8C=E6=B1=A0=E9=9D=A2=E6=9D=BF=E6=94=B6=E8=B5=B7?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增hideCardsPanel私有方法封装卡牌面板收起逻辑 2. 召唤英雄成功后自动收起卡牌池面板 3. 关闭面板按钮调用统一的收起逻辑 4. 调整初始角色控制器面板默认激活状态为关闭 --- assets/resources/gui/role_controller.prefab | 2 +- assets/script/game/map/MissionCardComp.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 75232a2b..0227f7fb 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -1454,7 +1454,7 @@ "__id__": 330 } ], - "_active": true, + "_active": false, "_components": [ { "__id__": 379 diff --git a/assets/script/game/map/MissionCardComp.ts b/assets/script/game/map/MissionCardComp.ts index 800d1e54..30a8f8a8 100644 --- a/assets/script/game/map/MissionCardComp.ts +++ b/assets/script/game/map/MissionCardComp.ts @@ -797,6 +797,8 @@ export class MissionCardComp extends CCComp { if (heroIdx >= 0) { const cards = this.buildDrawCards(); this.dispatchCardsToSlots(cards); + // 召唤成功后收起英雄卡池面板 + this.hideCardsPanel(); mLogger.log(this.debugMode, "MissionCardComp", "refresh hero pool after buy", { triggerSlot: heroIdx }); @@ -1043,6 +1045,11 @@ export class MissionCardComp extends CCComp { */ private onCloseCardsClick() { oops.audio.playEffect("music/button"); + this.hideCardsPanel(); + } + + /** 隐藏卡牌面板:向下滑出到 Y=-700(不含按钮音效,供系统逻辑复用) */ + private hideCardsPanel() { if (!this.cardPanNode || !this.cardPanNode.isValid) return; Tween.stopAllByTarget(this.cardPanNode); tween(this.cardPanNode)