Add Settings On Title Screen, Update Starter-Select Tutorial Dialogue (EN, DE, FR, CN, BR) (#1367)

* add settings on title screen, update starter select tutorial (en)

* French "Settings" transaltion in menu.ts

* Update French tutorial.ts

* [LOCALIZATION] add DE

* fix players online position

* [LOCALIZATION] add zh_CN

* [LOCALIZATION] add pt_BR

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
This commit is contained in:
Adrian T 2024-05-29 04:51:33 +08:00 committed by GitHub
parent 5afe32a1e2
commit fccd546415
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 24 additions and 7 deletions

View File

@ -11,6 +11,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "Täglicher Run (Beta)", "dailyRun": "Täglicher Run (Beta)",
"loadGame": "Spiel laden", "loadGame": "Spiel laden",
"newGame": "Neues Spiel", "newGame": "Neues Spiel",
"settings": "Einstellungen",
"selectGameMode": "Wähle einen Spielmodus", "selectGameMode": "Wähle einen Spielmodus",
"logInOrCreateAccount": "Melde dich an oder erstelle einen Account zum starten. Keine Email nötig!", "logInOrCreateAccount": "Melde dich an oder erstelle einen Account zum starten. Keine Email nötig!",
"username": "Benutzername", "username": "Benutzername",

View File

@ -14,7 +14,8 @@ export const tutorial: SimpleTranslationEntries = {
$Dort kannst du u. A. die Spielgeschwin-\ndigkeit und das Fensterdesign ändern. $Dort kannst du u. A. die Spielgeschwin-\ndigkeit und das Fensterdesign ändern.
$Das Menü verbirgt noch andere Funktionen - probier' sie gerne aus!`, $Das Menü verbirgt noch andere Funktionen - probier' sie gerne aus!`,
"starterSelect": `Hier kannst du deine Starter-Pokémon auswählen.\nSie begleiten dich am Anfang deines Abenteuers. "starterSelect": `In diesem Bildschirm kannst du mit Z oder Leertaste deine\nStarter auswählen.
$Sie begleiten dich am Anfang deines Abenteuers.
$Jeder Starter hat einen Preis. Dein Team kann bis zu sechs\nMitglieder haben, solange der Gesamtpreis max. 10 beträgt. $Jeder Starter hat einen Preis. Dein Team kann bis zu sechs\nMitglieder haben, solange der Gesamtpreis max. 10 beträgt.
$Du kannst Geschlecht, Fähigkeit und Form beliebig auswählen,\nsobald du sie mindestens einmal gefangen hast. $Du kannst Geschlecht, Fähigkeit und Form beliebig auswählen,\nsobald du sie mindestens einmal gefangen hast.
$Die DVs ergeben sich aus den Höchstwerten aller Pokémon,\ndie du bereits gefangen hast. $Die DVs ergeben sich aus den Höchstwerten aller Pokémon,\ndie du bereits gefangen hast.

View File

@ -11,6 +11,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "Daily Run (Beta)", "dailyRun": "Daily Run (Beta)",
"loadGame": "Load Game", "loadGame": "Load Game",
"newGame": "New Game", "newGame": "New Game",
"settings": "Settings",
"selectGameMode": "Select a game mode.", "selectGameMode": "Select a game mode.",
"logInOrCreateAccount": "Log in or create an account to start. No email required!", "logInOrCreateAccount": "Log in or create an account to start. No email required!",
"username": "Username", "username": "Username",

View File

@ -12,7 +12,7 @@ export const tutorial: SimpleTranslationEntries = {
$From the settings you can change game speed, window style, and other options. $From the settings you can change game speed, window style, and other options.
$There are also various other features here, so be sure to check them all!`, $There are also various other features here, so be sure to check them all!`,
"starterSelect": `From this screen, you can select your starters.\nThese are your initial party members. "starterSelect": `From this screen, you can select your starters by pressing\nZ or the Space bar. These are your initial party members.
$Each starter has a value. Your party can have up to\n6 members as long as the total does not exceed 10. $Each starter has a value. Your party can have up to\n6 members as long as the total does not exceed 10.
$You can also select gender, ability, and form depending on\nthe variants you've caught or hatched. $You can also select gender, ability, and form depending on\nthe variants you've caught or hatched.
$The IVs for a species are also the best of every one you've\ncaught or hatched, so try to get lots of the same species!`, $The IVs for a species are also the best of every one you've\ncaught or hatched, so try to get lots of the same species!`,

View File

@ -11,6 +11,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "Reto diario (Beta)", "dailyRun": "Reto diario (Beta)",
"loadGame": "Cargar partida", "loadGame": "Cargar partida",
"newGame": "Nueva partida", "newGame": "Nueva partida",
"settings": "Settings",
"selectGameMode": "Elige un modo de juego.", "selectGameMode": "Elige un modo de juego.",
"logInOrCreateAccount": "Inicia sesión o crea una cuenta para empezar. ¡No se requiere correo electrónico!", "logInOrCreateAccount": "Inicia sesión o crea una cuenta para empezar. ¡No se requiere correo electrónico!",
"username": "Usuario", "username": "Usuario",

View File

@ -6,6 +6,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "Défi du jour (Bêta)", "dailyRun": "Défi du jour (Bêta)",
"loadGame": "Charger la partie", "loadGame": "Charger la partie",
"newGame": "Nouvelle partie", "newGame": "Nouvelle partie",
"settings": "Paramètres",
"selectGameMode": "Sélectionnez un mode de jeu.", "selectGameMode": "Sélectionnez un mode de jeu.",
"logInOrCreateAccount": "Connectez-vous ou créez un compte pour commencer. Aucun e-mail requis !", "logInOrCreateAccount": "Connectez-vous ou créez un compte pour commencer. Aucun e-mail requis !",
"username": "Nom dutilisateur", "username": "Nom dutilisateur",

View File

@ -16,7 +16,7 @@ export const tutorial: SimpleTranslationEntries = {
$Il y a également toute une variété dautres fonctionnalités, $Il y a également toute une variété dautres fonctionnalités,
$jetez-y un œil !`, $jetez-y un œil !`,
"starterSelect": `Choisissez vos starters depuis cet écran.\nIls formeront votre équipe de départ. "starterSelect": `Choisissez vos starters depuis cet écran avec Z ou Espace.\nIls formeront votre équipe de départ.
$Chacun possède une valeur. Votre équipe peut avoir jusquà\n6 membres, tant que vous ne dépassez pas un cout de 10. $Chacun possède une valeur. Votre équipe peut avoir jusquà\n6 membres, tant que vous ne dépassez pas un cout de 10.
$Vous pouvez aussi choisir le sexe, le talent et la forme en\nfonction des variants déjà capturés ou éclos. $Vous pouvez aussi choisir le sexe, le talent et la forme en\nfonction des variants déjà capturés ou éclos.
$Les IVs dun starter sont les meilleurs de tous ceux de son\nespèce déjà obtenus. Essayez donc den obtenir plusieurs !`, $Les IVs dun starter sont les meilleurs de tous ceux de son\nespèce déjà obtenus. Essayez donc den obtenir plusieurs !`,

View File

@ -10,6 +10,7 @@ export const menu: SimpleTranslationEntries = {
"continue": "Continua", "continue": "Continua",
"newGame": "Nuova Partita", "newGame": "Nuova Partita",
"loadGame": "Carica Partita", "loadGame": "Carica Partita",
"settings": "Settings",
"dailyRun": "Corsa Giornaliera (Beta)", "dailyRun": "Corsa Giornaliera (Beta)",
"selectGameMode": "Seleziona una modalità di gioco.", "selectGameMode": "Seleziona una modalità di gioco.",
"logInOrCreateAccount": "Accedi o crea un nuovo account per iniziare. Non è richiesta un'email!", "logInOrCreateAccount": "Accedi o crea un nuovo account per iniziare. Non è richiesta un'email!",

View File

@ -11,6 +11,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "Desafio Diário (Beta)", "dailyRun": "Desafio Diário (Beta)",
"loadGame": "Carregar Jogo", "loadGame": "Carregar Jogo",
"newGame": "Novo Jogo", "newGame": "Novo Jogo",
"settings": "Configurações",
"selectGameMode": "Escolha um modo de jogo.", "selectGameMode": "Escolha um modo de jogo.",
"logInOrCreateAccount": "Inicie uma sessão ou crie uma conta para começar. Não é necessário email!", "logInOrCreateAccount": "Inicie uma sessão ou crie uma conta para começar. Não é necessário email!",
"username": "Nome de Usuário", "username": "Nome de Usuário",

View File

@ -18,7 +18,8 @@ export const tutorial: SimpleTranslationEntries = {
$Existem também vários outros recursos disponíveis aqui. $Existem também vários outros recursos disponíveis aqui.
$Não deixe de conferir todos eles!`, $Não deixe de conferir todos eles!`,
"starterSelect": `Aqui você pode escolher seus iniciais.\nEsses serão os primeiro Pokémon da sua equipe. "starterSelect": `Aqui você pode escolher seus iniciais apertando a tecla Z ou\na Barra de Espaço.
$Esses serão os primeiro Pokémon da sua equipe.
$Cada inicial tem seu custo. Sua equipe pode ter até 6\nmembros, desde que a soma dos custos não ultrapasse 10. $Cada inicial tem seu custo. Sua equipe pode ter até 6\nmembros, desde que a soma dos custos não ultrapasse 10.
$Você pode escolher o gênero, a habilidade\ne até a forma do seu inicial. $Você pode escolher o gênero, a habilidade\ne até a forma do seu inicial.
$Essas opções dependem das variantes dessa\nespécie que você capturou ou chocou. $Essas opções dependem das variantes dessa\nespécie que você capturou ou chocou.

View File

@ -11,6 +11,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "每日挑战 (Beta)", "dailyRun": "每日挑战 (Beta)",
"loadGame": "加载游戏", "loadGame": "加载游戏",
"newGame": "新游戏", "newGame": "新游戏",
"settings": "设置",
"selectGameMode": "选择一个游戏模式", "selectGameMode": "选择一个游戏模式",
"logInOrCreateAccount": "登录或创建账户以开始游戏。无需邮箱!", "logInOrCreateAccount": "登录或创建账户以开始游戏。无需邮箱!",
"username": "用户名", "username": "用户名",

View File

@ -13,7 +13,7 @@ export const tutorial: SimpleTranslationEntries = {
$在设置中\n和其他选项 $在设置中\n和其他选项
$这里还有各种其他功能`, $这里还有各种其他功能`,
"starterSelect": `在此页面中,您可以选择您的初始宝可梦。\n这些是您最初的队伍成员。 "starterSelect": `在此页面中,您可以通过按Z或空格键选择\n您的初始宝可梦。这些是您最初的队伍成员。
$每个初始宝可梦都有一个费用值\n最多可以拥有6名成员10 $每个初始宝可梦都有一个费用值\n最多可以拥有6名成员10
$您还可以根据您捕获或孵化的变种选择性别\n $您还可以根据您捕获或孵化的变种选择性别\n
$一个物种个体值是您捕获或孵化的所有宝可\n梦中最好的`, $一个物种个体值是您捕获或孵化的所有宝可\n梦中最好的`,

View File

@ -11,6 +11,7 @@ export const menu: SimpleTranslationEntries = {
"dailyRun": "每日挑戰 (Beta)", "dailyRun": "每日挑戰 (Beta)",
"loadGame": "加載遊戲", "loadGame": "加載遊戲",
"newGame": "新遊戲", "newGame": "新遊戲",
"settings": "Settings",
"selectGameMode": "選擇遊戲模式", "selectGameMode": "選擇遊戲模式",
"logInOrCreateAccount": "登入或註冊即可開始遊戲,無需郵箱!", "logInOrCreateAccount": "登入或註冊即可開始遊戲,無需郵箱!",
"username": "用戶名", "username": "用戶名",

View File

@ -262,6 +262,14 @@ export class TitlePhase extends Phase {
return true; return true;
}, },
keepOpen: true keepOpen: true
},
{
label: i18next.t("menu:settings"),
handler: () => {
this.scene.ui.setOverlayMode(Mode.SETTINGS);
return true;
},
keepOpen: true
}); });
const config: OptionSelectConfig = { const config: OptionSelectConfig = {
options: options, options: options,
@ -1015,7 +1023,6 @@ export class EncounterPhase extends BattlePhase {
} }
} }
} }
handleTutorial(this.scene, Tutorial.Access_Menu).then(() => super.end()); handleTutorial(this.scene, Tutorial.Access_Menu).then(() => super.end());
} }

View File

@ -38,7 +38,7 @@ export default class TitleUiHandler extends OptionSelectUiHandler {
this.titleContainer.add(this.dailyRunScoreboard); this.titleContainer.add(this.dailyRunScoreboard);
this.playerCountLabel = addTextObject(this.scene, (this.scene.game.canvas.width / 6) - 2, (this.scene.game.canvas.height / 6) - 90, `? ${i18next.t("menu:playersOnline")}`, TextStyle.MESSAGE, { fontSize: "54px" }); this.playerCountLabel = addTextObject(this.scene, (this.scene.game.canvas.width / 6) - 2, (this.scene.game.canvas.height / 6) - 109, `? ${i18next.t("menu:playersOnline")}`, TextStyle.MESSAGE, { fontSize: "54px" });
this.playerCountLabel.setOrigin(1, 0); this.playerCountLabel.setOrigin(1, 0);
this.titleContainer.add(this.playerCountLabel); this.titleContainer.add(this.playerCountLabel);