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)