style(skill tooltip): 调整护盾 tooltip 显示文本格式

移除护盾提示文本中的“吸收”前缀,只保留数值
This commit is contained in:
panFD
2026-09-13 13:02:06 +08:00
parent a2f80e45b5
commit dc19072f2c

View File

@@ -135,10 +135,10 @@ export class TooltipCom extends CCComp {
this.node.setPosition(v3(this.node.position.x, currentY - 60)); this.node.setPosition(v3(this.node.position.x, currentY - 60));
this.node.setSiblingIndex(topSiblingIndex); this.node.setSiblingIndex(topSiblingIndex);
break; break;
case TooltipTypes.shield: // 护盾吸收伤害:显示“吸收”+ 数值 case TooltipTypes.shield: // 护盾吸收伤害:显示 数值
this.node.setPosition(v3(this.node.position.x + offsetX, currentY)); this.node.setPosition(v3(this.node.position.x + offsetX, currentY));
this.node.setSiblingIndex(topSiblingIndex); 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; // 垂直上飘,区别于伤害随机横飘 isHeal = true; // 垂直上飘,区别于伤害随机横飘
break; break;
case TooltipTypes.miss: // 闪避 case TooltipTypes.miss: // 闪避