feat(ui): 重构英雄卡AP/HP显示逻辑并调整卡牌布局

- 移除旧的 info_node 引用,改为直接绑定 ap_node 和 hp_node
- 调整卡牌原始定位点位置以优化布局
- 在 prefab 中添加独立的 AP 和 HP 显示节点
- 更新显示逻辑,根据卡牌类型控制 AP/HP 面板的显隐
This commit is contained in:
panw
2026-04-24 10:23:50 +08:00
parent 051342a9c4
commit 955465da58
4 changed files with 2204 additions and 1172 deletions

View File

@@ -141,7 +141,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,-75,108,260]
/**
* 英雄信息面板映射EID → { node, model, comp }
* 用于追踪每个出战英雄的面板实例和数据引用