fix: 修复英雄卡牌费用标签显示异常的问题
移除对英雄卡牌隐藏费用标签的特殊处理,统一显示所有卡牌的费用标签,确保界面一致性。
This commit is contained in:
@@ -878,15 +878,11 @@ 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");
|
||||
if (numNode) {
|
||||
this.setLabel(numNode, `${this.card_cost}`);
|
||||
}
|
||||
if (this.cost_node) {
|
||||
this.cost_node.active = true;
|
||||
const numNode = this.cost_node.getChildByName("num");
|
||||
if (numNode) {
|
||||
this.setLabel(numNode, `${this.card_cost}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user