From ded1b36cfbdcc5a797dbdde1471eecfecac62b74 Mon Sep 17 00:00:00 2001 From: panw Date: Mon, 30 Jun 2025 17:24:04 +0800 Subject: [PATCH] dd --- assets/script/game/hero/HeroViewComp.ts | 2 +- assets/script/game/skills/TooltipCom.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 81248b5c..2aa59745 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -220,6 +220,7 @@ export class HeroViewComp extends CCComp { this.ap += Math.floor(ap/100*this.ap); } this.BUFFCOMP.vmdata_update() + this.BUFFCOMP.tooltip(TooltipTypes.apup,ap.toFixed(0)); oops.message.dispatchEvent(GameEvent.APChange,{fac:this.fac}) } @@ -231,7 +232,6 @@ export class HeroViewComp extends CCComp { this.ap -= Math.floor(ap/100*this.ap); } this.BUFFCOMP.vmdata_update() - this.BUFFCOMP.tooltip(TooltipTypes.apup,ap.toFixed(0)); } update_hp(e:GameEvent,data:any){ console.log("[HeroViewComp]:update_hp",data) diff --git a/assets/script/game/skills/TooltipCom.ts b/assets/script/game/skills/TooltipCom.ts index 009e15f8..c6c2ab51 100644 --- a/assets/script/game/skills/TooltipCom.ts +++ b/assets/script/game/skills/TooltipCom.ts @@ -80,7 +80,7 @@ export class TooltipCom extends CCComp { case TooltipTypes.apup: this.node.getChildByName("apup").getChildByName("num").getComponent(Label).string = "+"+this.value; this.node.getChildByName("apup").active=true; - this.node.setPosition(v3(this.node.position.x,this.node.position.y-30)) + this.node.setPosition(v3(this.node.position.x,this.node.position.y-60)) this.scheduleOnce(()=>{ this.ent.destroy() },0.5) @@ -88,7 +88,7 @@ export class TooltipCom extends CCComp { case TooltipTypes.hpup: this.node.getChildByName("hpup").getChildByName("num").getComponent(Label).string = "+"+this.value; this.node.getChildByName("hpup").active=true; - this.node.setPosition(v3(this.node.position.x,this.node.position.y-30)) + this.node.setPosition(v3(this.node.position.x,this.node.position.y-60)) this.scheduleOnce(()=>{ this.ent.destroy() },0.5)