fix: 修复英雄卡牌费用标签显示异常的问题
移除对英雄卡牌隐藏费用标签的特殊处理,统一显示所有卡牌的费用标签,确保界面一致性。
This commit is contained in:
@@ -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) {
|
if (this.cost_node) {
|
||||||
this.cost_node.active = true;
|
this.cost_node.active = true;
|
||||||
const numNode = this.cost_node.getChildByName("num");
|
const numNode = this.cost_node.getChildByName("num");
|
||||||
@@ -888,7 +885,6 @@ export class CardComp extends CCComp {
|
|||||||
this.setLabel(numNode, `${this.card_cost}`);
|
this.setLabel(numNode, `${this.card_cost}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// ---- 名字节点位置调整 ----
|
// ---- 名字节点位置调整 ----
|
||||||
if (this.name_node) {
|
if (this.name_node) {
|
||||||
|
|||||||
Reference in New Issue
Block a user