[P3 Bug][UI] Fix egg summary not displaying 1st mon properly (#4507)
This commit is contained in:
parent
2488bf805b
commit
fd67096a6a
|
@ -99,8 +99,9 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
super.clear();
|
super.clear();
|
||||||
this.cursor = -1;
|
|
||||||
this.scrollGridHandler.reset();
|
this.scrollGridHandler.reset();
|
||||||
|
this.cursor = -1;
|
||||||
|
|
||||||
this.summaryContainer.setVisible(false);
|
this.summaryContainer.setVisible(false);
|
||||||
this.pokemonIconsContainer.removeAll(true);
|
this.pokemonIconsContainer.removeAll(true);
|
||||||
this.pokemonContainers = [];
|
this.pokemonContainers = [];
|
||||||
|
@ -164,8 +165,8 @@ export default class EggSummaryUiHandler extends MessageUiHandler {
|
||||||
|
|
||||||
this.scrollGridHandler.setTotalElements(this.eggHatchData.length);
|
this.scrollGridHandler.setTotalElements(this.eggHatchData.length);
|
||||||
this.updatePokemonIcons();
|
this.updatePokemonIcons();
|
||||||
|
|
||||||
this.setCursor(0);
|
this.setCursor(0);
|
||||||
|
|
||||||
this.scene.playSoundWithoutBgm("evolution_fanfare");
|
this.scene.playSoundWithoutBgm("evolution_fanfare");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue