fix: 修复英雄卡牌费用标签显示异常的问题

移除对英雄卡牌隐藏费用标签的特殊处理,统一显示所有卡牌的费用标签,确保界面一致性。
This commit is contained in:
panw
2026-04-24 15:57:46 +08:00
parent 70130cb930
commit 6e7952fc5f

View File

@@ -878,9 +878,6 @@ export class CardComp extends CCComp {
}
// ---- 费用标签 ----
if (this.card_type === CardType.Hero) {
if (this.cost_node) this.cost_node.active = false;
} else {
if (this.cost_node) {
this.cost_node.active = true;
const numNode = this.cost_node.getChildByName("num");
@@ -888,7 +885,6 @@ export class CardComp extends CCComp {
this.setLabel(numNode, `${this.card_cost}`);
}
}
}
// ---- 名字节点位置调整 ----
if (this.name_node) {