Apply EGG_SUMMARY_NAME and EGG_SUMMARY_DEX

This commit is contained in:
Lugiad 2025-06-29 01:58:12 +02:00 committed by GitHub
parent 534e768d95
commit 1031f82560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,13 +49,11 @@ export default class PokemonHatchInfoContainer extends PokemonInfoContainer {
this.pokemonListContainer.add(this.currentPokemonSprite); this.pokemonListContainer.add(this.currentPokemonSprite);
// setup name and number // setup name and number
this.pokemonNumberText = addTextObject(80, 107.5, "0000", TextStyle.SUMMARY, { fontSize: 74 }); this.pokemonNumberText = addTextObject(84, 107, "0000", TextStyle.EGG_SUMMARY_DEX, { fontSize: 78 });
this.pokemonNumberText.setOrigin(0, 0); this.pokemonNumberText.setOrigin(0, 0);
this.pokemonListContainer.add(this.pokemonNumberText); this.pokemonListContainer.add(this.pokemonNumberText);
this.pokemonNameText = addTextObject(7, 107.5, "", TextStyle.SUMMARY, { this.pokemonNameText = addTextObject(7, 109, "", TextStyle.EGG_SUMMARY_NAME, { fontSize: 64 });
fontSize: 74,
});
this.pokemonNameText.setOrigin(0, 0); this.pokemonNameText.setOrigin(0, 0);
this.pokemonListContainer.add(this.pokemonNameText); this.pokemonListContainer.add(this.pokemonNameText);