feat(card): 添加长按放大功能并调整卡牌布局

- 在 CardComp 中实现长按触发卡牌放大,优化触摸交互逻辑
- 调整 MissionCardComp 中卡牌位置数组顺序,修复布局错位
- 修改 card.prefab 中多个 UI 元素的坐标和对齐方式,优化视觉呈现
- 移除卡牌种类标识的显示逻辑,简化卡牌 UI
This commit is contained in:
walkpan
2026-04-20 23:59:38 +08:00
parent 033fd44560
commit 0829b0bc9d
3 changed files with 135 additions and 29 deletions

View File

@@ -138,7 +138,7 @@ export class MissionCardComp extends CCComp {
/** 卡牌面板收起态缩放scale=0 隐藏) */
private cardsHideScale: Vec3 = new Vec3(0, 0, 1);
/** 卡牌原始定位点 */
private cardsPos = [-260,86,-86,260]
private cardsPos = [-260,-86,86,260]
/**
* 英雄信息面板映射EID → { node, model, comp }
* 用于追踪每个出战英雄的面板实例和数据引用