[P3 Bug] Fix form name not always showing in starter select (#4406)
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
parent
43879b4751
commit
03bedac283
|
@ -260,6 +260,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
private pokemonCandyCountText: Phaser.GameObjects.Text;
|
private pokemonCandyCountText: Phaser.GameObjects.Text;
|
||||||
private pokemonCaughtHatchedContainer: Phaser.GameObjects.Container;
|
private pokemonCaughtHatchedContainer: Phaser.GameObjects.Container;
|
||||||
private pokemonCaughtCountText: Phaser.GameObjects.Text;
|
private pokemonCaughtCountText: Phaser.GameObjects.Text;
|
||||||
|
private pokemonFormText: Phaser.GameObjects.Text;
|
||||||
private pokemonHatchedIcon : Phaser.GameObjects.Sprite;
|
private pokemonHatchedIcon : Phaser.GameObjects.Sprite;
|
||||||
private pokemonHatchedCountText: Phaser.GameObjects.Text;
|
private pokemonHatchedCountText: Phaser.GameObjects.Text;
|
||||||
private pokemonShinyIcon: Phaser.GameObjects.Sprite;
|
private pokemonShinyIcon: Phaser.GameObjects.Sprite;
|
||||||
|
@ -287,7 +288,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
private starterSelectMessageBox: Phaser.GameObjects.NineSlice;
|
private starterSelectMessageBox: Phaser.GameObjects.NineSlice;
|
||||||
private starterSelectMessageBoxContainer: Phaser.GameObjects.Container;
|
private starterSelectMessageBoxContainer: Phaser.GameObjects.Container;
|
||||||
private statsContainer: StatsContainer;
|
private statsContainer: StatsContainer;
|
||||||
private pokemonFormText: Phaser.GameObjects.Text;
|
|
||||||
private moveInfoOverlay : MoveInfoOverlay;
|
private moveInfoOverlay : MoveInfoOverlay;
|
||||||
|
|
||||||
private statsMode: boolean;
|
private statsMode: boolean;
|
||||||
|
@ -2288,6 +2288,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
this.filterInstructionRowX += 50;
|
this.filterInstructionRowX += 50;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateInstructions(): void {
|
updateInstructions(): void {
|
||||||
this.instructionRowX = 0;
|
this.instructionRowX = 0;
|
||||||
this.instructionRowY = 0;
|
this.instructionRowY = 0;
|
||||||
|
@ -2826,6 +2827,8 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
this.pokemonShinyIcon.setTint(tint);
|
this.pokemonShinyIcon.setTint(tint);
|
||||||
this.pokemonShinyIcon.setVisible(defaultProps.shiny);
|
this.pokemonShinyIcon.setVisible(defaultProps.shiny);
|
||||||
this.pokemonCaughtHatchedContainer.setVisible(true);
|
this.pokemonCaughtHatchedContainer.setVisible(true);
|
||||||
|
this.pokemonFormText.setVisible(true);
|
||||||
|
|
||||||
if (pokemonPrevolutions.hasOwnProperty(species.speciesId)) {
|
if (pokemonPrevolutions.hasOwnProperty(species.speciesId)) {
|
||||||
this.pokemonCaughtHatchedContainer.setY(16);
|
this.pokemonCaughtHatchedContainer.setY(16);
|
||||||
this.pokemonShinyIcon.setY(135);
|
this.pokemonShinyIcon.setY(135);
|
||||||
|
@ -2849,7 +2852,6 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
this.pokemonCandyDarknessOverlay.setVisible(true);
|
this.pokemonCandyDarknessOverlay.setVisible(true);
|
||||||
this.pokemonCandyCountText.setText(`x${this.scene.gameData.starterData[species.speciesId].candyCount}`);
|
this.pokemonCandyCountText.setText(`x${this.scene.gameData.starterData[species.speciesId].candyCount}`);
|
||||||
this.pokemonCandyCountText.setVisible(true);
|
this.pokemonCandyCountText.setVisible(true);
|
||||||
this.pokemonFormText.setVisible(true);
|
|
||||||
this.pokemonFormText.setY(42);
|
this.pokemonFormText.setY(42);
|
||||||
this.pokemonHatchedIcon.setVisible(true);
|
this.pokemonHatchedIcon.setVisible(true);
|
||||||
this.pokemonHatchedCountText.setVisible(true);
|
this.pokemonHatchedCountText.setVisible(true);
|
||||||
|
|
Loading…
Reference in New Issue