mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-02 22:44:48 +01:00
[UI/UX] Pokédex - Informative messages for level up moves #5388
This commit is contained in:
parent
13d9140340
commit
6a4c6f1c89
@ -983,13 +983,23 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
|
|
||||||
ui.setModeWithoutClear(Mode.OPTION_SELECT, {
|
ui.setModeWithoutClear(Mode.OPTION_SELECT, {
|
||||||
options: this.levelMoves.map(m => {
|
options: this.levelMoves.map(m => {
|
||||||
|
const levelNumber = m[0] > 0 ? String(m[0]) : "";
|
||||||
const option: OptionSelectItem = {
|
const option: OptionSelectItem = {
|
||||||
label: String(m[0]).padEnd(4, " ") + allMoves[m[1]].name,
|
label: levelNumber.padEnd(4, " ") + allMoves[m[1]].name,
|
||||||
handler: () => {
|
handler: () => {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
onHover: () => {
|
onHover: () => {
|
||||||
this.moveInfoOverlay.show(allMoves[m[1]]);
|
this.moveInfoOverlay.show(allMoves[m[1]]);
|
||||||
|
if (m[0] === 0) {
|
||||||
|
this.showText(i18next.t("pokedexUiHandler:onlyEvolutionMove"));
|
||||||
|
} else if (m[0] === -1) {
|
||||||
|
this.showText(i18next.t("pokedexUiHandler:onlyRecallMove"));
|
||||||
|
} else if (m[0] <= 5) {
|
||||||
|
this.showText(i18next.t("pokedexUiHandler:onStarterSelectMove"));
|
||||||
|
} else {
|
||||||
|
this.showText(i18next.t("pokedexUiHandler:byLevelUpMove"));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
return option;
|
return option;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user