From c30900e5080ee49ca9d8f30eebe9726281aaa667 Mon Sep 17 00:00:00 2001 From: panFD Date: Fri, 19 Jun 2026 15:40:39 +0800 Subject: [PATCH] feat(CardComp): add call_btn node reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增卡片组件的呼叫按钮节点绑定,同步更新预制件配置添加对应的节点id引用 --- assets/resources/gui/element/card.prefab | 3 +++ assets/script/game/map/CardComp.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/assets/resources/gui/element/card.prefab b/assets/resources/gui/element/card.prefab index edc59b6b..9222226c 100644 --- a/assets/resources/gui/element/card.prefab +++ b/assets/resources/gui/element/card.prefab @@ -6102,6 +6102,9 @@ }, "Lock": null, "unLock": null, + "call_btn": { + "__id__": 307 + }, "name_node": { "__id__": 257 }, diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index b1adb252..5195956c 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -62,6 +62,9 @@ export class CardComp extends CCComp { /** 解锁态图标节点(显示时表示本槽位未锁定,可点击上锁) */ @property(Node) unLock: Node = null! + + @property(Node) + call_btn: Node = null! /** 英雄卡信息面板(显示 AP / HP) 废弃,改用直接绑定 */ // @property(Node) // info_node=null!