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:
@@ -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: // 普通伤害
|
||||
|
||||
Reference in New Issue
Block a user