From 7eb0e8e77dd07fd7c1e268fd40411ab2836fbb10 Mon Sep 17 00:00:00 2001 From: Matthew Olker Date: Tue, 4 Jun 2024 21:45:36 -0400 Subject: [PATCH] revert pokemon info container depth change --- src/ui/pokemon-info-container.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ui/pokemon-info-container.ts b/src/ui/pokemon-info-container.ts index 017237c1fe3..41992b42212 100644 --- a/src/ui/pokemon-info-container.ts +++ b/src/ui/pokemon-info-container.ts @@ -62,7 +62,6 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container { private initialX: number; private movesContainerInitialX: number; - private initialParentDepth: number; public statsContainer: StatsContainer; @@ -263,8 +262,6 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container { this.setVisible(true); this.shown = true; - this.initialParentDepth = this.parentContainer.depth; - this.parentContainer.setDepth(3); }); } @@ -285,7 +282,6 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container { hide(speedMultiplier: number = 1): Promise { return new Promise(resolve => { if (!this.shown) { - this.parentContainer.setDepth(this.initialParentDepth); return resolve(); } @@ -306,7 +302,6 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container { this.pokemonShinyIcon.off("pointerover"); this.pokemonShinyIcon.off("pointerout"); (this.scene as BattleScene).ui.hideTooltip(); - this.parentContainer.setDepth(this.initialParentDepth); resolve(); } });