Merge branch 'summary' into contribsummary

This commit is contained in:
Jannik Tappert 2024-05-15 23:47:21 +02:00
commit 3c7e873a4e
17 changed files with 182 additions and 120 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -1,40 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = { export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember", "unknownLocation": "An einem unbekannten Ort",
"TOWN": "Town", "TOWN": "Stadt",
"PLAINS": "Plains", "PLAINS": "Ebene",
"GRASS": "Grassy Field", "GRASS": "Grasfeld",
"TALL_GRASS": "Tall Grass", "TALL_GRASS": "Hohes Gras",
"METROPOLIS": "Metropolis", "METROPOLIS": "Metropole",
"FOREST": "Forest", "FOREST": "Wald",
"SEA": "Sea", "SEA": "Meer",
"SWAMP": "Swamp", "SWAMP": "Sumpf",
"BEACH": "Beach", "BEACH": "Strand",
"LAKE": "Lake", "LAKE": "See",
"SEABED": "Seabed", "SEABED": "Meeresboden",
"MOUNTAIN": "Mountain", "MOUNTAIN": "Berg",
"BADLANDS": "Badlands", "BADLANDS": "Kargland",
"CAVE": "Cave", "CAVE": "Höhle",
"DESERT": "Desert", "DESERT": "Wüste",
"ICE_CAVE": "Ice Cave", "ICE_CAVE": "Eishöhle",
"MEADOW": "Meadow", "MEADOW": "Weide",
"POWER_PLANT": "Power Plant", "POWER_PLANT": "Kraftwerk",
"VOLCANO": "Volcano", "VOLCANO": "Vulkan",
"GRAVEYARD": "Graveyard", "GRAVEYARD": "Friedhof",
"DOJO": "Dojo", "DOJO": "Dojo",
"FACTORY": "Factory", "FACTORY": "Fabrik",
"RUINS": "Ancient Ruins", "RUINS": "Alte Ruinen",
"WASTELAND": "Wasteland", "WASTELAND": "Ödland",
"ABYSS": "The Abyss", "ABYSS": "Der Abgrund",
"SPACE": "Stratosphere", "SPACE": "Stratosphäre",
"CONSTRUCTION_SITE": "Construction Site", "CONSTRUCTION_SITE": "Baustelle",
"JUNGLE": "Jungle", "JUNGLE": "Dschungel",
"FAIRY_CAVE": "Fairy Cave", "FAIRY_CAVE": "Feenhöhle",
"TEMPLE": "Temple", "TEMPLE": "Tempel",
"SLUM": "Slum", "SLUM": "Elendsviertel",
"SNOWY_FOREST": "Snowy Forest", "SNOWY_FOREST": "Verschneiter Wald",
"ISLAND": "Island", "ISLAND": "Insel",
"LABORATORY": "Laboratory", "LABORATORY": "Labor",
"END": "Final Destination", "END": "Ende",
} as const; } as const;

View File

@ -1,17 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const partyUiHandler: SimpleTranslationEntries = { export const partyUiHandler: SimpleTranslationEntries = {
"choosePokemon": "Choose a Pokémon.", "choosePokemon": "Wähle ein Pokémon.",
"cantReleaseInBattle": "You can\'t release a Pokémon that\'s in battle!", "cantReleaseInBattle": "Kämpfende Pokémon können\n nicht freigelassen werden.",
"what2doWithPoke": "Do what with this Pokémon?", "what2doWithPoke": "Was möchtest du mit diesem Pokémon tun?",
"cancelShort": "Cancel", "cancelShort": "Abbrechen",
"selectMove": "Select a move.", "selectMove": "Wähle eine Attacke.",
"selectHeldItemTransfer": "Select a held item to transfer.", "selectHeldItemTransfer": "Wähle welches Item du übertragen möchtest.",
"selectSplice": "Select another Pokémon to splice.", "selectSplice": "Wähle ein Pokémon zum verbinden.",
"deactivate": "Deactivate", "deactivate": "Deaktivieren",
"activate": "Activate", "activate": "Aktivieren",
"SEND_OUT": "Send Out", "SEND_OUT": "Einwechseln",
"SUMMARY": "Summary", "SUMMARY": "Info",
"RELEASE": "Release", "RELEASE": "Freilassen",
"CANCEL": "Cancel" "CANCEL": "Abbrechen",
"unpauseEvolution": "{{pokemonName}} kann jetzt wieder\nentwickelt werden.",
"unsplicePokemon": "Willst du wirklich {{fusionSpeciesName}}\nvon {{pokemonName}} trennen? {{fusionSpeciesName}} wird freigelassen.",
"spliceRevertText": "{{fusionName}} wurde wieder zu {{pokemonName}}.",
"releasePokemon": "Willst du {{pokemonName}} wirklich freilassen?",
} as const; } as const;

View File

@ -16,8 +16,8 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"gen7": "VII", "gen7": "VII",
"gen8": "VIII", "gen8": "VIII",
"gen9": "IX", "gen9": "IX",
"growthRate": "Wachstum:", "growthRate": "Wachstumrate:",
"ability": "Fhgkeit:", "ability": "Fähigkeit:",
"passive": "Passiv:", "passive": "Passiv:",
"nature": "Wesen:", "nature": "Wesen:",
"eggMoves": "Ei-Attacken", "eggMoves": "Ei-Attacken",
@ -40,7 +40,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
"disablePassive": "Passiv-Skill deaktivieren", "disablePassive": "Passiv-Skill deaktivieren",
"locked": "Gesperrt", "locked": "Gesperrt",
"disabled": "Deaktiviert", "disabled": "Deaktiviert",
"uncaught": "Uncaught", "uncaught": "Nicht gefangen",
"luck":" Luck", "luck":" Glück",
"form": "Form" "form": "Form",
} }

View File

@ -3,15 +3,15 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const SummaryUiHandler: SimpleTranslationEntries = { export const SummaryUiHandler: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info", //Currently unused "pokemonInfo": "Pokémon Info", //Currently unused
"originalTrainer": "OT", "originalTrainer": "OT",
"type": "Type", "type": "Typ",
"natureBeforeText": "", "natureBeforeText": "Wesen: ",
"natureAfterText": " nature", "natureAfterText": "",
"apparently": "apparently", "apparently": "Wahrscheinlich",
"metAtLv":"met at Lv", "metAtLv":"getroffen auf Lvl. ",
"status": "Status", "status": "Status",
"lvl": "Lvl", "lvl": "Lvl",
"unknown": 'Unknown', "unknown": 'Unbekannt',
"expPoints": "EXP. Points", "expPoints": "EP",
"nextLv": "Next Lv.", "nextLv": "Nächstes Lv",
"moveStats": "Power\nAccuracy\nCategory" "moveStats": "Stärke\nGenauigkeit\nKategorie",
} as const; } as const;

View File

@ -13,5 +13,10 @@ export const partyUiHandler: SimpleTranslationEntries = {
"SEND_OUT": "Send Out", "SEND_OUT": "Send Out",
"SUMMARY": "Summary", "SUMMARY": "Summary",
"RELEASE": "Release", "RELEASE": "Release",
"CANCEL": "Cancel" "CANCEL": "Cancel",
"unpauseEvolution": "Evolutions have been unpaused for {{pokemonName}}",
"unsplicePokemon": "`Do you really want to unsplice {{fusionSpeciesName}}\nfrom {{pokemonName}? {{fusionSpeciesName}} will be lost.",
"spliceRevertText": "{{fusionName}} was reverted to {{pokemonName}}.",
"releasePokemon": "Do you really want to release {{pokemonName}}?",
} as const; } as const;

View File

@ -13,5 +13,10 @@ export const partyUiHandler: SimpleTranslationEntries = {
"SEND_OUT": "Cambiar", "SEND_OUT": "Cambiar",
"SUMMARY": "Datos", "SUMMARY": "Datos",
"RELEASE": "Liberar", "RELEASE": "Liberar",
"CANCEL": "Cancelar" "CANCEL": "Cancelar",
"unpauseEvolution": "Evolutions have been unpaused for {{pokemonName}}",
"unsplicePokemon": "`Do you really want to unsplice {{fusionSpeciesName}}\nfrom {{pokemonName}? {{fusionSpeciesName}} will be lost.",
"spliceRevertText": "{{fusionName}} was reverted to {{pokemonName}}.",
"releasePokemon": "Do you really want to release {{pokemonName}}?",
} as const; } as const;

View File

@ -13,5 +13,10 @@ export const partyUiHandler: SimpleTranslationEntries = {
"SEND_OUT": "Send Out", "SEND_OUT": "Send Out",
"SUMMARY": "Summary", "SUMMARY": "Summary",
"RELEASE": "Release", "RELEASE": "Release",
"CANCEL": "Cancel" "CANCEL": "Cancel",
"unpauseEvolution": "Evolutions have been unpaused for {{pokemonName}}",
"unsplicePokemon": "`Do you really want to unsplice {{fusionSpeciesName}}\nfrom {{pokemonName}? {{fusionSpeciesName}} will be lost.",
"spliceRevertText": "{{fusionName}} was reverted to {{pokemonName}}.",
"releasePokemon": "Do you really want to release {{pokemonName}}?",
} as const; } as const;

View File

@ -13,5 +13,10 @@ export const partyUiHandler: SimpleTranslationEntries = {
"SEND_OUT": "Send Out", "SEND_OUT": "Send Out",
"SUMMARY": "Summary", "SUMMARY": "Summary",
"RELEASE": "Release", "RELEASE": "Release",
"CANCEL": "Cancel" "CANCEL": "Cancel",
"unpauseEvolution": "Evolutions have been unpaused for {{pokemonName}}",
"unsplicePokemon": "`Do you really want to unsplice {{fusionSpeciesName}}\nfrom {{pokemonName}? {{fusionSpeciesName}} will be lost.",
"spliceRevertText": "{{fusionName}} was reverted to {{pokemonName}}.",
"releasePokemon": "Do you really want to release {{pokemonName}}?",
} as const; } as const;

View File

@ -1,23 +1,23 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const menuUiHandler: SimpleTranslationEntries = { export const menuUiHandler: SimpleTranslationEntries = {
"GAME_SETTINGS": 'Configurações', "GAME_SETTINGS": "Configurações",
"ACHIEVEMENTS": "Conquistas", "ACHIEVEMENTS": "Conquistas",
"STATS": "Estatísticas", "STATS": "Estatísticas",
"VOUCHERS": "Vouchers", "VOUCHERS": "Vouchers",
"EGG_LIST": "Incubadora", "EGG_LIST": "Incubadora",
"EGG_GACHA": "Gacha de Ovos", "EGG_GACHA": "Gacha de ovos",
"MANAGE_DATA": "Gerenciar Dados", "MANAGE_DATA": "Gerenciar dados",
"COMMUNITY": "Comunidade", "COMMUNITY": "Comunidade",
"SAVE_AND_QUIT": "Save and Quit", "SAVE_AND_QUIT": "Salvar e sair",
"LOG_OUT": "Logout", "LOG_OUT": "Logout",
"slot": "Slot {{slotNumber}}", "slot": "Slot {{slotNumber}}",
"importSession": "Importar Sessão", "importSession": "Importar sessão",
"importSlotSelect": "Selecione um slot para importar.", "importSlotSelect": "Selecione um slot para importar.",
"exportSession": "Exportar Sessão", "exportSession": "Exportar sessão",
"exportSlotSelect": "Selecione um slot para exportar.", "exportSlotSelect": "Selecione um slot para exportar.",
"importData": "Importar Dados", "importData": "Importar dados",
"exportData": "Exportar Dados", "exportData": "Exportar dados",
"cancel": "Cancelar", "cancel": "Cancelar",
"losingProgressionWarning": "Você vai perder todo o progresso desde o início da batalha. Confirmar?" "losingProgressionWarning": "Você vai perder todo o progresso desde o início da batalha. Confirmar?"
} as const; } as const;

View File

@ -8,7 +8,7 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const menu: SimpleTranslationEntries = { export const menu: SimpleTranslationEntries = {
"cancel": "Cancelar", "cancel": "Cancelar",
"continue": "Continuar", "continue": "Continuar",
"dailyRun": "Desafio diário (Beta)", "dailyRun": "Desafio Diário (Beta)",
"loadGame": "Carregar Jogo", "loadGame": "Carregar Jogo",
"newGame": "Novo Jogo", "newGame": "Novo Jogo",
"selectGameMode": "Escolha um modo de jogo.", "selectGameMode": "Escolha um modo de jogo.",
@ -35,11 +35,11 @@ export const menu: SimpleTranslationEntries = {
"boyOrGirl": "Você é um menino ou uma menina?", "boyOrGirl": "Você é um menino ou uma menina?",
"boy": "Menino", "boy": "Menino",
"girl": "Menina", "girl": "Menina",
"evolving": "What?\n{{pokemonName}} is evolving!", "evolving": "Que?\n{{pokemonName}} tá evoluindo!",
"stoppedEvolving": "{{pokemonName}} stopped evolving.", "stoppedEvolving": "{{pokemonName}} parou de evoluir.",
"pauseEvolutionsQuestion": "Would you like to pause evolutions for {{pokemonName}}?\nEvolutions can be re-enabled from the party screen.", "pauseEvolutionsQuestion": "Gostaria de pausar evoluções para {{pokemonName}}?\nEvoluções podem ser religadas na tela de equipe.",
"evolutionsPaused": "Evolutions have been paused for {{pokemonName}}.", "evolutionsPaused": "Evoluções foram paradas para {{pokemonName}}.",
"evolutionDone": "Congratulations!\nYour {{pokemonName}} evolved into {{evolvedPokemonName}}!", "evolutionDone": "Parabéns!\nSeu {{pokemonName}} evolui para {{evolvedPokemonName}}!",
"dailyRankings": "Classificação Diária", "dailyRankings": "Classificação Diária",
"weeklyRankings": "Classificação Semanal", "weeklyRankings": "Classificação Semanal",
"noRankings": "Sem Classificação", "noRankings": "Sem Classificação",

View File

@ -13,5 +13,10 @@ export const partyUiHandler: SimpleTranslationEntries = {
"SEND_OUT": "Send Out", "SEND_OUT": "Send Out",
"SUMMARY": "Summary", "SUMMARY": "Summary",
"RELEASE": "Release", "RELEASE": "Release",
"CANCEL": "Cancel" "CANCEL": "Cancel",
"unpauseEvolution": "Evolutions have been unpaused for {{pokemonName}}",
"unsplicePokemon": "`Do you really want to unsplice {{fusionSpeciesName}}\nfrom {{pokemonName}? {{fusionSpeciesName}} will be lost.",
"spliceRevertText": "{{fusionName}} was reverted to {{pokemonName}}.",
"releasePokemon": "Do you really want to release {{pokemonName}}?",
} as const; } as const;

View File

@ -4,41 +4,41 @@ import { SimpleTranslationEntries } from "#app/plugins/i18n";
* The weather namespace holds text displayed when weather is active during a battle * The weather namespace holds text displayed when weather is active during a battle
*/ */
export const weather: SimpleTranslationEntries = { export const weather: SimpleTranslationEntries = {
"sunnyStartMessage": "The sunlight got bright!", "sunnyStartMessage": "A luz do sol ficou clara!",
"sunnyLapseMessage": "The sunlight is strong.", "sunnyLapseMessage": "A luz do sol está forte.",
"sunnyClearMessage": "The sunlight faded.", "sunnyClearMessage": "A luz do sol sumiu.",
"rainStartMessage": "A downpour started!", "rainStartMessage": "Começou a chover!",
"rainLapseMessage": "The downpour continues.", "rainLapseMessage": "A chuva continua forte.",
"rainClearMessage": "The rain stopped.", "rainClearMessage": "A chuva parou.",
"sandstormStartMessage": "A sandstorm brewed!", "sandstormStartMessage": "Uma tempestade de areia se formou!",
"sandstormLapseMessage": "The sandstorm rages.", "sandstormLapseMessage": "A tempestade de areia é violenta.",
"sandstormClearMessage": "The sandstorm subsided.", "sandstormClearMessage": "A tempestade de areia diminuiu.",
"sandstormDamageMessage": "{{pokemonPrefix}}{{pokemonName}} is buffeted\nby the sandstorm!", "sandstormDamageMessage": "{{pokemonPrefix}}{{pokemonName}} é atingido\npela tempestade de areia!",
"hailStartMessage": "It started to hail!", "hailStartMessage": "Começou a chover granizo!",
"hailLapseMessage": "Hail continues to fall.", "hailLapseMessage": "Granizo cai do céu.",
"hailClearMessage": "The hail stopped.", "hailClearMessage": "O granizo parou.",
"hailDamageMessage": "{{pokemonPrefix}}{{pokemonName}} is pelted\nby the hail!", "hailDamageMessage": "{{pokemonPrefix}}{{pokemonName}} é atingido\npelo granizo!",
"snowStartMessage": "It started to snow!", "snowStartMessage": "Começou a nevar!",
"snowLapseMessage": "The snow is falling down.", "snowLapseMessage": "A neve continua caindo.",
"snowClearMessage": "The snow stopped.", "snowClearMessage": "Parou de nevar.",
"fogStartMessage": "A thick fog emerged!", "fogStartMessage": "Uma névoa densa se formou!",
"fogLapseMessage": "The fog continues.", "fogLapseMessage": "A névoa continua forte.",
"fogClearMessage": "The fog disappeared.", "fogClearMessage": "A névoa sumiu.",
"heavyRainStartMessage": "A heavy downpour started!", "heavyRainStartMessage": "Um temporal começou!",
"heavyRainLapseMessage": "The heavy downpour continues.", "heavyRainLapseMessage": "O temporal continua forte.",
"heavyRainClearMessage": "The heavy rain stopped.", "heavyRainClearMessage": "O temporal parou.",
"harshSunStartMessage": "The sunlight got hot!", "harshSunStartMessage": "A luz do sol está escaldante!",
"harshSunLapseMessage": "The sun is scorching hot.", "harshSunLapseMessage": "A luz do sol é intensa.",
"harshSunClearMessage": "The harsh sunlight faded.", "harshSunClearMessage": "A luz do sol enfraqueceu.",
"strongWindsStartMessage": "A heavy wind began!", "strongWindsStartMessage": "Ventos fortes apareceram!",
"strongWindsLapseMessage": "The wind blows intensely.", "strongWindsLapseMessage": "Os ventos fortes continuam.",
"strongWindsClearMessage": "The heavy wind stopped." "strongWindsClearMessage": "Os ventos fortes diminuíram.",
} }

View File

@ -13,5 +13,10 @@ export const partyUiHandler: SimpleTranslationEntries = {
"SEND_OUT": "Send Out", "SEND_OUT": "Send Out",
"SUMMARY": "Summary", "SUMMARY": "Summary",
"RELEASE": "Release", "RELEASE": "Release",
"CANCEL": "Cancel" "CANCEL": "Cancel",
"unpauseEvolution": "Evolutions have been unpaused for {{pokemonName}}",
"unsplicePokemon": "`Do you really want to unsplice {{fusionSpeciesName}}\nfrom {{pokemonName}? {{fusionSpeciesName}} will be lost.",
"spliceRevertText": "{{fusionName}} was reverted to {{pokemonName}}.",
"releasePokemon": "Do you really want to release {{pokemonName}}?",
} as const; } as const;

View File

@ -303,18 +303,18 @@ export default class PartyUiHandler extends MessageUiHandler {
this.clearOptions(); this.clearOptions();
ui.playSelect(); ui.playSelect();
pokemon.pauseEvolutions = false; pokemon.pauseEvolutions = false;
this.showText(`Evolutions have been unpaused for ${pokemon.name}.`, null, () => this.showText(null, 0), null, true); this.showText(i18next.t("partyUiHandler:unpauseEvolution",{pokemonName: pokemon.name}), null, () => this.showText(null, 0), null, true);
} else if (option === PartyOption.UNSPLICE) { } else if (option === PartyOption.UNSPLICE) {
this.clearOptions(); this.clearOptions();
ui.playSelect(); ui.playSelect();
this.showText(`Do you really want to unsplice ${pokemon.fusionSpecies.name}\nfrom ${pokemon.name}? ${pokemon.fusionSpecies.name} will be lost.`, null, () => { this.showText(i18next.t("partyUiHandler:unsplicePokemon",{fusionSpeciesName: pokemon.fusionSpecies.name, pokemonName: pokemon.name}), null, () => {
ui.setModeWithoutClear(Mode.CONFIRM, () => { ui.setModeWithoutClear(Mode.CONFIRM, () => {
const fusionName = pokemon.name; const fusionName = pokemon.name;
pokemon.unfuse().then(() => { pokemon.unfuse().then(() => {
this.clearPartySlots(); this.clearPartySlots();
this.populatePartySlots(); this.populatePartySlots();
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.showText(`${fusionName} was reverted to ${pokemon.name}.`, null, () => { this.showText(i18next.t("partyUiHandler:spliceRevertText",{fusionName: fusionName,pokemonName: pokemon.name}), null, () => {
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.showText(null, 0); this.showText(null, 0);
}, null, true); }, null, true);
@ -328,7 +328,7 @@ export default class PartyUiHandler extends MessageUiHandler {
this.clearOptions(); this.clearOptions();
ui.playSelect(); ui.playSelect();
if (this.cursor >= this.scene.currentBattle.getBattlerCount()) { if (this.cursor >= this.scene.currentBattle.getBattlerCount()) {
this.showText(`Do you really want to release ${pokemon.name}?`, null, () => { this.showText(i18next.t("partyUiHandler:releasePokemon",{pokemonName: pokemon.name}), null, () => {
ui.setModeWithoutClear(Mode.CONFIRM, () => { ui.setModeWithoutClear(Mode.CONFIRM, () => {
ui.setMode(Mode.PARTY); ui.setMode(Mode.PARTY);
this.doRelease(this.cursor); this.doRelease(this.cursor);

View File

@ -238,12 +238,22 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
this.pokemonNameText.setOrigin(0, 0); this.pokemonNameText.setOrigin(0, 0);
this.starterSelectContainer.add(this.pokemonNameText); this.starterSelectContainer.add(this.pokemonNameText);
let growthRateXPosition = 34;
switch (i18next.language) {
case 'de':
growthRateXPosition = 38;
break;
default:
growthRateXPosition = 34;
break
}
this.pokemonGrowthRateLabelText = addTextObject(this.scene, 8, 106, i18next.t("starterSelectUiHandler:growthRate"), TextStyle.SUMMARY_ALT, { fontSize: '36px' }); this.pokemonGrowthRateLabelText = addTextObject(this.scene, 8, 106, i18next.t("starterSelectUiHandler:growthRate"), TextStyle.SUMMARY_ALT, { fontSize: '36px' });
this.pokemonGrowthRateLabelText.setOrigin(0, 0); this.pokemonGrowthRateLabelText.setOrigin(0, 0);
this.pokemonGrowthRateLabelText.setVisible(false); this.pokemonGrowthRateLabelText.setVisible(false);
this.starterSelectContainer.add(this.pokemonGrowthRateLabelText); this.starterSelectContainer.add(this.pokemonGrowthRateLabelText);
this.pokemonGrowthRateText = addTextObject(this.scene, 34, 106, '', TextStyle.SUMMARY_PINK, { fontSize: '36px' }); this.pokemonGrowthRateText = addTextObject(this.scene, growthRateXPosition, 106, '', TextStyle.SUMMARY_PINK, { fontSize: '36px' });
this.pokemonGrowthRateText.setOrigin(0, 0); this.pokemonGrowthRateText.setOrigin(0, 0);
this.starterSelectContainer.add(this.pokemonGrowthRateText); this.starterSelectContainer.add(this.pokemonGrowthRateText);
@ -262,6 +272,9 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
case 'pt_BR': case 'pt_BR':
starterInfoXPosition = 32; starterInfoXPosition = 32;
break; break;
case 'de':
starterInfoXPosition = 36;
break;
default: default:
starterInfoXPosition = 31; starterInfoXPosition = 31;
break break
@ -274,6 +287,9 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
case 'pt_BR': case 'pt_BR':
starterInfoTextSize = '47px'; starterInfoTextSize = '47px';
break; break;
case 'de':
starterInfoTextSize = '52px';
break;
default: default:
starterInfoTextSize = '56px'; starterInfoTextSize = '56px';
break break
@ -461,12 +477,12 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
this.pokemonSprite.setPipeline(this.scene.spritePipeline, { tone: [ 0.0, 0.0, 0.0, 0.0 ], ignoreTimeTint: true }); this.pokemonSprite.setPipeline(this.scene.spritePipeline, { tone: [ 0.0, 0.0, 0.0, 0.0 ], ignoreTimeTint: true });
this.starterSelectContainer.add(this.pokemonSprite); this.starterSelectContainer.add(this.pokemonSprite);
this.type1Icon = this.scene.add.sprite(8, 98, 'types'); this.type1Icon = this.scene.add.sprite(8, 98, `types${Utils.verifyLang(i18next.language) ? `_${i18next.language}` : ''}`);
this.type1Icon.setScale(0.5); this.type1Icon.setScale(0.5);
this.type1Icon.setOrigin(0, 0); this.type1Icon.setOrigin(0, 0);
this.starterSelectContainer.add(this.type1Icon); this.starterSelectContainer.add(this.type1Icon);
this.type2Icon = this.scene.add.sprite(26, 98, 'types'); this.type2Icon = this.scene.add.sprite(26, 98, `types${Utils.verifyLang(i18next.language) ? `_${i18next.language}` : ''}`);
this.type2Icon.setScale(0.5); this.type2Icon.setScale(0.5);
this.type2Icon.setOrigin(0, 0); this.type2Icon.setOrigin(0, 0);
this.starterSelectContainer.add(this.type2Icon); this.starterSelectContainer.add(this.type2Icon);

View File

@ -108,6 +108,8 @@ export default class SummaryUiHandler extends UiHandler {
setup() { setup() {
const ui = this.getUi(); const ui = this.getUi();
const language = i18next.language;
this.summaryContainer = this.scene.add.container(0, 0); this.summaryContainer = this.scene.add.container(0, 0);
this.summaryContainer.setVisible(false); this.summaryContainer.setVisible(false);
ui.add(this.summaryContainer); ui.add(this.summaryContainer);
@ -225,7 +227,17 @@ export default class SummaryUiHandler extends UiHandler {
moveEffectBg.setOrigin(0, 0); moveEffectBg.setOrigin(0, 0);
this.moveEffectContainer.add(moveEffectBg); this.moveEffectContainer.add(moveEffectBg);
const moveEffectLabels = addTextObject(this.scene, 8, 12, i18next.t('summaryUiHandler:moveStats'), TextStyle.SUMMARY); let moveStatsXValue = 8;
switch (language) {
case 'de':
moveStatsXValue = 3;
break;
default:
moveStatsXValue = 8;
break;
}
const moveEffectLabels = addTextObject(this.scene, moveStatsXValue, 12, i18next.t('summaryUiHandler:moveStats'), TextStyle.SUMMARY);
moveEffectLabels.setLineSpacing(9); moveEffectLabels.setLineSpacing(9);
moveEffectLabels.setOrigin(0, 0); moveEffectLabels.setOrigin(0, 0);