style(skill tooltip): 调整护盾 tooltip 显示文本格式
移除护盾提示文本中的“吸收”前缀,只保留数值
This commit is contained in:
@@ -135,10 +135,10 @@ export class TooltipCom extends CCComp {
|
||||
this.node.setPosition(v3(this.node.position.x, currentY - 60));
|
||||
this.node.setSiblingIndex(topSiblingIndex);
|
||||
break;
|
||||
case TooltipTypes.shield: // 护盾吸收伤害:显示“吸收”+ 数值
|
||||
case TooltipTypes.shield: // 护盾吸收伤害:显示 数值
|
||||
this.node.setPosition(v3(this.node.position.x + offsetX, currentY));
|
||||
this.node.setSiblingIndex(topSiblingIndex);
|
||||
this.setupTipLabel(`吸收 ${this.value}`, this.tipColor ?? new Color(79, 195, 247, 255)); // 默认蓝
|
||||
this.setupTipLabel(`${this.value}`, this.tipColor ?? new Color(79, 195, 247, 255)); // 默认蓝
|
||||
isHeal = true; // 垂直上飘,区别于伤害随机横飘
|
||||
break;
|
||||
case TooltipTypes.miss: // 闪避
|
||||
|
||||
Reference in New Issue
Block a user