Fixed the ptBR text in starter menu popping out of the info box... (#902)
* Fixes the ptBR text in starter menu popping out of the info box and added language personalization, changed some ptBR natures and ordered thw switch case in alphabetic order * Small fixpull/912/head
parent
adf5690383
commit
9b8af7ad71
|
@ -8,7 +8,7 @@ export const nature: SimpleTranslationEntries = {
|
||||||
"Naughty": "Teimosa",
|
"Naughty": "Teimosa",
|
||||||
"Bold": "Corajosa",
|
"Bold": "Corajosa",
|
||||||
"Docile": "Dócil",
|
"Docile": "Dócil",
|
||||||
"Relaxed": "Descontraída",
|
"Relaxed": "Relaxada",
|
||||||
"Impish": "Inquieta",
|
"Impish": "Inquieta",
|
||||||
"Lax": "Relaxada",
|
"Lax": "Relaxada",
|
||||||
"Timid": "Tímida",
|
"Timid": "Tímida",
|
||||||
|
@ -20,7 +20,7 @@ export const nature: SimpleTranslationEntries = {
|
||||||
"Mild": "Mansa",
|
"Mild": "Mansa",
|
||||||
"Quiet": "Quieta",
|
"Quiet": "Quieta",
|
||||||
"Bashful": "Atrapalhada",
|
"Bashful": "Atrapalhada",
|
||||||
"Rash": "Imprudente",
|
"Rash": "Rabugenta",
|
||||||
"Calm": "Calma",
|
"Calm": "Calma",
|
||||||
"Gentle": "Gentil",
|
"Gentle": "Gentil",
|
||||||
"Sassy": "Atrevida",
|
"Sassy": "Atrevida",
|
||||||
|
|
|
@ -8,9 +8,9 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"confirmStartTeam": 'Começar com esses Pokémon?',
|
"confirmStartTeam": 'Começar com esses Pokémon?',
|
||||||
"growthRate": "Crescimento:",
|
"growthRate": "Crescimento:",
|
||||||
"ability": "Hab.:",
|
"ability": "Habilidade:",
|
||||||
"passive": "Passiva:",
|
"passive": "Passiva:",
|
||||||
"nature": "Nature:",
|
"nature": "Natureza:",
|
||||||
"eggMoves": "Mov. de Ovo",
|
"eggMoves": "Mov. de Ovo",
|
||||||
"start": "Iniciar",
|
"start": "Iniciar",
|
||||||
"addToParty": "Adicionar à equipe",
|
"addToParty": "Adicionar à equipe",
|
||||||
|
@ -25,11 +25,11 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleForm": 'F: Mudar Forma',
|
"cycleForm": 'F: Mudar Forma',
|
||||||
"cycleGender": 'G: Mudar Gênero',
|
"cycleGender": 'G: Mudar Gênero',
|
||||||
"cycleAbility": 'E: Mudar Habilidade',
|
"cycleAbility": 'E: Mudar Habilidade',
|
||||||
"cycleNature": 'N: Mudar Nature',
|
"cycleNature": 'N: Mudar Natureza',
|
||||||
"cycleVariant": 'V: Mudar Variante',
|
"cycleVariant": 'V: Mudar Variante',
|
||||||
"enablePassive": "Ativar Passiva",
|
"enablePassive": "Ativar Passiva",
|
||||||
"disablePassive": "Desativar Passiva",
|
"disablePassive": "Desativar Passiva",
|
||||||
"locked": "Bloqueado",
|
"locked": "Bloqueada",
|
||||||
"disabled": "Desativado",
|
"disabled": "Desativada",
|
||||||
"uncaught": "Não capturado"
|
"uncaught": "Não capturado"
|
||||||
}
|
}
|
|
@ -245,30 +245,54 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
this.pokemonUncaughtText.setOrigin(0, 0);
|
this.pokemonUncaughtText.setOrigin(0, 0);
|
||||||
this.starterSelectContainer.add(this.pokemonUncaughtText);
|
this.starterSelectContainer.add(this.pokemonUncaughtText);
|
||||||
|
|
||||||
this.pokemonAbilityLabelText = addTextObject(this.scene, 6, 127, i18next.t("starterSelectUiHandler:ability"), TextStyle.SUMMARY_ALT, { fontSize: '56px' });
|
let starterInfoXPosition = 31; // Only text
|
||||||
|
// The position should be set per language
|
||||||
|
const currentLanguage = i18next.language;
|
||||||
|
switch (currentLanguage) {
|
||||||
|
case 'pt_BR':
|
||||||
|
starterInfoXPosition = 32;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
starterInfoXPosition = 31;
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
let starterInfoTextSize = '56px'; // Labels and text
|
||||||
|
// The font size should be set per language
|
||||||
|
// currentLanguage is already defined
|
||||||
|
switch (currentLanguage) {
|
||||||
|
case 'pt_BR':
|
||||||
|
starterInfoTextSize = '47px';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
starterInfoTextSize = '56px';
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
this.pokemonAbilityLabelText = addTextObject(this.scene, 6, 127, i18next.t("starterSelectUiHandler:ability"), TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonAbilityLabelText.setOrigin(0, 0);
|
this.pokemonAbilityLabelText.setOrigin(0, 0);
|
||||||
this.pokemonAbilityLabelText.setVisible(false);
|
this.pokemonAbilityLabelText.setVisible(false);
|
||||||
this.starterSelectContainer.add(this.pokemonAbilityLabelText);
|
this.starterSelectContainer.add(this.pokemonAbilityLabelText);
|
||||||
|
|
||||||
this.pokemonAbilityText = addTextObject(this.scene, 31, 127, '', TextStyle.SUMMARY_ALT, { fontSize: '56px' });
|
this.pokemonAbilityText = addTextObject(this.scene, starterInfoXPosition, 127, '', TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonAbilityText.setOrigin(0, 0);
|
this.pokemonAbilityText.setOrigin(0, 0);
|
||||||
this.starterSelectContainer.add(this.pokemonAbilityText);
|
this.starterSelectContainer.add(this.pokemonAbilityText);
|
||||||
|
|
||||||
this.pokemonPassiveLabelText = addTextObject(this.scene, 6, 136, i18next.t("starterSelectUiHandler:passive"), TextStyle.SUMMARY_ALT, { fontSize: '56px' });
|
this.pokemonPassiveLabelText = addTextObject(this.scene, 6, 136, i18next.t("starterSelectUiHandler:passive"), TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonPassiveLabelText.setOrigin(0, 0);
|
this.pokemonPassiveLabelText.setOrigin(0, 0);
|
||||||
this.pokemonPassiveLabelText.setVisible(false);
|
this.pokemonPassiveLabelText.setVisible(false);
|
||||||
this.starterSelectContainer.add(this.pokemonPassiveLabelText);
|
this.starterSelectContainer.add(this.pokemonPassiveLabelText);
|
||||||
|
|
||||||
this.pokemonPassiveText = addTextObject(this.scene, 31, 136, '', TextStyle.SUMMARY_ALT, { fontSize: '56px' });
|
this.pokemonPassiveText = addTextObject(this.scene, starterInfoXPosition, 136, '', TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonPassiveText.setOrigin(0, 0);
|
this.pokemonPassiveText.setOrigin(0, 0);
|
||||||
this.starterSelectContainer.add(this.pokemonPassiveText);
|
this.starterSelectContainer.add(this.pokemonPassiveText);
|
||||||
|
|
||||||
this.pokemonNatureLabelText = addTextObject(this.scene, 6, 145, i18next.t("starterSelectUiHandler:nature"), TextStyle.SUMMARY_ALT, { fontSize: '56px' });
|
this.pokemonNatureLabelText = addTextObject(this.scene, 6, 145, i18next.t("starterSelectUiHandler:nature"), TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonNatureLabelText.setOrigin(0, 0);
|
this.pokemonNatureLabelText.setOrigin(0, 0);
|
||||||
this.pokemonNatureLabelText.setVisible(false);
|
this.pokemonNatureLabelText.setVisible(false);
|
||||||
this.starterSelectContainer.add(this.pokemonNatureLabelText);
|
this.starterSelectContainer.add(this.pokemonNatureLabelText);
|
||||||
|
|
||||||
this.pokemonNatureText = addBBCodeTextObject(this.scene, 31, 145, '', TextStyle.SUMMARY_ALT, { fontSize: '56px' });
|
this.pokemonNatureText = addBBCodeTextObject(this.scene, starterInfoXPosition, 145, '', TextStyle.SUMMARY_ALT, { fontSize: starterInfoTextSize });
|
||||||
this.pokemonNatureText.setOrigin(0, 0);
|
this.pokemonNatureText.setOrigin(0, 0);
|
||||||
this.starterSelectContainer.add(this.pokemonNatureText);
|
this.starterSelectContainer.add(this.pokemonNatureText);
|
||||||
|
|
||||||
|
@ -556,8 +580,11 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
|
|
||||||
let instructionTextSize = '42px';
|
let instructionTextSize = '42px';
|
||||||
// The font size should be set per language
|
// The font size should be set per language
|
||||||
const currentLanguage = i18next.language;
|
// currentLanguage is already defined in the previous code block
|
||||||
switch (currentLanguage) {
|
switch (currentLanguage) {
|
||||||
|
case 'de':
|
||||||
|
instructionTextSize = '35px';
|
||||||
|
break;
|
||||||
case 'en':
|
case 'en':
|
||||||
instructionTextSize = '42px';
|
instructionTextSize = '42px';
|
||||||
break;
|
break;
|
||||||
|
@ -567,12 +594,12 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
case 'fr':
|
case 'fr':
|
||||||
instructionTextSize = '42px';
|
instructionTextSize = '42px';
|
||||||
break;
|
break;
|
||||||
case 'de':
|
|
||||||
instructionTextSize = '35px';
|
|
||||||
break;
|
|
||||||
case 'it':
|
case 'it':
|
||||||
instructionTextSize = '38px';
|
instructionTextSize = '38px';
|
||||||
break;
|
break;
|
||||||
|
case 'pt_BR':
|
||||||
|
instructionTextSize = '38px';
|
||||||
|
break;
|
||||||
case 'zh_CN':
|
case 'zh_CN':
|
||||||
instructionTextSize = '42px';
|
instructionTextSize = '42px';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue