Adding Pokedéx option in starter select screen

This commit is contained in:
Wlowscha 2025-01-21 20:44:05 +01:00
parent 1d234c790d
commit 05d11b40fc
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -1981,6 +1981,21 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
}
});
}
options.push({
label: i18next.t("menuUiHandler:POKEDEX"),
handler: () => {
ui.setMode(Mode.STARTER_SELECT).then(() => {
const attributes = {
shiny: starterAttributes.shiny,
variant: starterAttributes.variant,
form: starterAttributes.form,
female: starterAttributes.female
};
ui.setOverlayMode(Mode.POKEDEX_PAGE, this.lastSpecies, starterAttributes.form, attributes);
return true;
});
}
});
options.push({
label: i18next.t("menu:cancel"),
handler: () => {