fix(skill tooltip): adjust tooltip vertical offset from 30 to 60

fix the issue that skill tooltip might be blocked by health bar
This commit is contained in:
panFD
2026-08-19 22:51:52 +08:00
parent 54591c78dd
commit 0ec27b09a4

View File

@@ -90,7 +90,7 @@ export class TooltipCom extends CCComp {
const topSiblingIndex = 9999;
// 临时变量存储当前Y坐标方便统一处理。增加60的Y轴基础偏移防止伤害飘字等遮挡血条
let currentY = this.node.position.y + 30;
let currentY = this.node.position.y + 60;
switch (this.stype) {
case TooltipTypes.life: // 普通伤害