From a2895de364e7cb6c29719c8a42797cc93c9b2692 Mon Sep 17 00:00:00 2001 From: Fabi <192151969+fabske0@users.noreply.github.com> Date: Mon, 27 Oct 2025 18:05:40 +0100 Subject: [PATCH] [UI/UX] Fix confirm options overlapping during ME (#6690) * fix menu overlap * fix confirm ui not reappearing after summary --- src/ui/containers/pokemon-info-container.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/containers/pokemon-info-container.ts b/src/ui/containers/pokemon-info-container.ts index 3b6e5bc2fc1..b98d83690f4 100644 --- a/src/ui/containers/pokemon-info-container.ts +++ b/src/ui/containers/pokemon-info-container.ts @@ -473,10 +473,15 @@ export class PokemonInfoContainer extends Phaser.GameObjects.Container { const xPosition = fromCatch ? this.initialX - this.infoWindowWidth - 67 : this.initialX - this.infoWindowWidth - ConfirmUiHandler.windowWidth; + + const infoTween = globalScene.tweens.getTweensOf(this)[0]; + const duration = Math.max(infoTween ? infoTween.duration - infoTween.elapsed : 0, 150); + infoTween?.destroy(); + return new Promise(resolve => { globalScene.tweens.add({ targets: this, - duration: fixedInt(Math.floor(150 / speedMultiplier)), + duration: fixedInt(Math.floor(duration / speedMultiplier)), ease: "Cubic.easeInOut", x: xPosition, onComplete: () => {