From eec455cbd9d8b97a1bb92ad6b30a396625469115 Mon Sep 17 00:00:00 2001 From: panFD Date: Wed, 17 Jun 2026 22:54:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(MissionCardComp):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8D=A1=E7=89=87=E6=8F=90=E7=A4=BA=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=8A=A8=E7=94=BB=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重新实现提示弹窗的显示动画:添加初始缩放归零设置,调整为弹出回弹、停留再消失的完整动画逻辑 --- assets/script/game/map/MissionCardComp.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/script/game/map/MissionCardComp.ts b/assets/script/game/map/MissionCardComp.ts index 54a46013..20421132 100644 --- a/assets/script/game/map/MissionCardComp.ts +++ b/assets/script/game/map/MissionCardComp.ts @@ -391,8 +391,18 @@ export class MissionCardComp extends CCComp { if (tipNode) { tipNode.active = true; Tween.stopAllByTarget(tipNode); + + // 设置初始状态:缩放为 0 + tipNode.setScale(new Vec3(0, 0, 1)); + tween(tipNode) - .delay(2) + // 1. 弹出动画(微放大再回弹) + .to(0.15, { scale: new Vec3(1.1, 1.1, 1) }, { easing: 'quadOut' }) + .to(0.05, { scale: new Vec3(1, 1, 1) }) + // 2. 停留 1 秒 + .delay(1) + // 3. 缩小消失动画 + .to(0.15, { scale: new Vec3(0, 0, 1) }, { easing: 'quadIn' }) .call(() => { if (tipNode && tipNode.isValid) tipNode.active = false; })