fix(map): adjust card info node display logic
set info node hidden for hero cards and visible for skill cards
This commit is contained in:
@@ -698,6 +698,8 @@ export class CardComp extends CCComp {
|
||||
|
||||
this.ap_node.active = true;
|
||||
this.hp_node.active = true;
|
||||
// 英雄卡:隐藏技能信息节点
|
||||
if (this.info_node) this.info_node.active = false;
|
||||
} else if (this.card_type === CardType.Skill) {
|
||||
if (this.lvl_node) this.lvl_node.node.active = false;
|
||||
// 技能卡:显示技能名 + 品质后缀 + 描述
|
||||
@@ -709,6 +711,8 @@ export class CardComp extends CCComp {
|
||||
|
||||
this.ap_node.active = false;
|
||||
this.hp_node.active = false;
|
||||
// 技能卡:显示技能信息节点
|
||||
if (this.info_node) this.info_node.active = true;
|
||||
} else {
|
||||
if (this.lvl_node) this.lvl_node.node.active = false;
|
||||
// 特殊卡(升级 / 刷新):显示卡名 + 品质后缀 + 描述
|
||||
|
||||
Reference in New Issue
Block a user