mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-20 03:06:49 +00:00
Adding for text on main dex page (#5300)
This commit is contained in:
parent
b483aa0465
commit
f087162eeb
@ -150,6 +150,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||
private pokemonNumberText: Phaser.GameObjects.Text;
|
||||
private pokemonSprite: Phaser.GameObjects.Sprite;
|
||||
private pokemonNameText: Phaser.GameObjects.Text;
|
||||
private pokemonFormText: Phaser.GameObjects.Text;
|
||||
private type1Icon: Phaser.GameObjects.Sprite;
|
||||
private type2Icon: Phaser.GameObjects.Sprite;
|
||||
|
||||
@ -418,6 +419,10 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||
this.pokemonNameText.setOrigin(0, 0);
|
||||
this.starterSelectContainer.add(this.pokemonNameText);
|
||||
|
||||
this.pokemonFormText = addTextObject(6, 122, "", TextStyle.PARTY, { fontSize: textSettings.instructionTextSize });
|
||||
this.pokemonFormText.setOrigin(0, 0);
|
||||
this.starterSelectContainer.add(this.pokemonFormText);
|
||||
|
||||
const starterBoxContainer = globalScene.add.container(speciesContainerX + 6, 9); //115
|
||||
|
||||
this.starterSelectScrollBar = new ScrollBar(161, 12, 5, pokemonContainerWindow.height - 6, 9);
|
||||
@ -1943,6 +1948,12 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||
this.pokemonSprite.setTint(0);
|
||||
}
|
||||
|
||||
if (isFormCaught || isFormSeen || globalScene.dexForDevs) {
|
||||
this.pokemonFormText.setText("Form Text");
|
||||
} else {
|
||||
this.pokemonFormText.setText("");
|
||||
}
|
||||
|
||||
if (isFormCaught || isFormSeen || globalScene.dexForDevs) {
|
||||
const speciesForm = getPokemonSpeciesForm(species.speciesId, 0); // TODO: always selecting the first form
|
||||
this.setTypeIcons(speciesForm.type1, speciesForm.type2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user