[P3 Bug][UI] Fix egg summary not displaying 1st mon properly (#4507)

This commit is contained in:
MokaStitcher 2024-09-30 03:48:29 +02:00 committed by GitHub
parent 2488bf805b
commit fd67096a6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -99,8 +99,9 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
clear() {
super.clear();
this.cursor = -1;
this.scrollGridHandler.reset();
this.cursor = -1;
this.summaryContainer.setVisible(false);
this.pokemonIconsContainer.removeAll(true);
this.pokemonContainers = [];
@ -164,8 +165,8 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
this.scrollGridHandler.setTotalElements(this.eggHatchData.length);
this.updatePokemonIcons();
this.setCursor(0);
this.scene.playSoundWithoutBgm("evolution_fanfare");
return true;
}