mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Added INSTRUCTIONS_TEXT TextStyle
This commit is contained in:
parent
85a97ebf04
commit
fca9b7ce80
@ -82,13 +82,21 @@ const languageSettings: { [key: string]: LanguageSetting } = {
|
|||||||
instructionTextSize: "38px",
|
instructionTextSize: "38px",
|
||||||
},
|
},
|
||||||
de: {
|
de: {
|
||||||
starterInfoTextSize: "48px",
|
starterInfoTextSize: "54px",
|
||||||
instructionTextSize: "35px",
|
instructionTextSize: "35px",
|
||||||
starterInfoXPos: 33,
|
starterInfoXPos: 35,
|
||||||
},
|
},
|
||||||
"es-ES": {
|
"es-ES": {
|
||||||
starterInfoTextSize: "56px",
|
starterInfoTextSize: "50px",
|
||||||
instructionTextSize: "35px",
|
instructionTextSize: "38px",
|
||||||
|
starterInfoYOffset: 0.5,
|
||||||
|
starterInfoXPos: 38,
|
||||||
|
},
|
||||||
|
"es-MX": {
|
||||||
|
starterInfoTextSize: "50px",
|
||||||
|
instructionTextSize: "38px",
|
||||||
|
starterInfoYOffset: 0.5,
|
||||||
|
starterInfoXPos: 38,
|
||||||
},
|
},
|
||||||
fr: {
|
fr: {
|
||||||
starterInfoTextSize: "54px",
|
starterInfoTextSize: "54px",
|
||||||
@ -98,34 +106,53 @@ const languageSettings: { [key: string]: LanguageSetting } = {
|
|||||||
starterInfoTextSize: "56px",
|
starterInfoTextSize: "56px",
|
||||||
instructionTextSize: "38px",
|
instructionTextSize: "38px",
|
||||||
},
|
},
|
||||||
pt_BR: {
|
"pt-BR": {
|
||||||
starterInfoTextSize: "47px",
|
starterInfoTextSize: "48px",
|
||||||
instructionTextSize: "38px",
|
instructionTextSize: "42px",
|
||||||
|
starterInfoYOffset: 0.5,
|
||||||
starterInfoXPos: 33,
|
starterInfoXPos: 33,
|
||||||
},
|
},
|
||||||
zh: {
|
zh: {
|
||||||
starterInfoTextSize: "47px",
|
starterInfoTextSize: "56px",
|
||||||
instructionTextSize: "38px",
|
instructionTextSize: "36px",
|
||||||
starterInfoYOffset: 1,
|
starterInfoXPos: 26,
|
||||||
starterInfoXPos: 24,
|
|
||||||
},
|
|
||||||
pt: {
|
|
||||||
starterInfoTextSize: "48px",
|
|
||||||
instructionTextSize: "42px",
|
|
||||||
starterInfoXPos: 33,
|
|
||||||
},
|
},
|
||||||
ko: {
|
ko: {
|
||||||
starterInfoTextSize: "52px",
|
starterInfoTextSize: "60px",
|
||||||
instructionTextSize: "38px",
|
instructionTextSize: "38px",
|
||||||
|
starterInfoYOffset: -0.5,
|
||||||
|
starterInfoXPos: 30,
|
||||||
},
|
},
|
||||||
ja: {
|
ja: {
|
||||||
starterInfoTextSize: "51px",
|
starterInfoTextSize: "48px",
|
||||||
instructionTextSize: "38px",
|
instructionTextSize: "40px",
|
||||||
|
starterInfoYOffset: 1,
|
||||||
|
starterInfoXPos: 32,
|
||||||
},
|
},
|
||||||
"ca-ES": {
|
ca: {
|
||||||
|
starterInfoTextSize: "48px",
|
||||||
|
instructionTextSize: "38px",
|
||||||
|
starterInfoYOffset: 0.5,
|
||||||
|
starterInfoXPos: 29,
|
||||||
|
},
|
||||||
|
da: {
|
||||||
starterInfoTextSize: "56px",
|
starterInfoTextSize: "56px",
|
||||||
instructionTextSize: "38px",
|
instructionTextSize: "38px",
|
||||||
},
|
},
|
||||||
|
tr: {
|
||||||
|
starterInfoTextSize: "56px",
|
||||||
|
instructionTextSize: "38px",
|
||||||
|
},
|
||||||
|
ro: {
|
||||||
|
starterInfoTextSize: "56px",
|
||||||
|
instructionTextSize: "38px",
|
||||||
|
},
|
||||||
|
ru: {
|
||||||
|
starterInfoTextSize: "46px",
|
||||||
|
instructionTextSize: "38px",
|
||||||
|
starterInfoYOffset: 0.5,
|
||||||
|
starterInfoXPos: 26,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const valueReductionMax = 2;
|
const valueReductionMax = 2;
|
||||||
@ -470,7 +497,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.instructionRowX + this.instructionRowTextOffset,
|
this.instructionRowX + this.instructionRowTextOffset,
|
||||||
this.instructionRowY,
|
this.instructionRowY,
|
||||||
i18next.t("pokedexUiHandler:candyUpgrade"),
|
i18next.t("pokedexUiHandler:candyUpgrade"),
|
||||||
TextStyle.PARTY,
|
TextStyle.INSTRUCTIONS_TEXT,
|
||||||
{ fontSize: instructionTextSize },
|
{ fontSize: instructionTextSize },
|
||||||
);
|
);
|
||||||
this.candyUpgradeLabel.setName("text-candyUpgrade-label");
|
this.candyUpgradeLabel.setName("text-candyUpgrade-label");
|
||||||
@ -491,7 +518,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.instructionRowX + this.instructionRowTextOffset,
|
this.instructionRowX + this.instructionRowTextOffset,
|
||||||
this.instructionRowY,
|
this.instructionRowY,
|
||||||
i18next.t("pokedexUiHandler:cycleShiny"),
|
i18next.t("pokedexUiHandler:cycleShiny"),
|
||||||
TextStyle.PARTY,
|
TextStyle.INSTRUCTIONS_TEXT,
|
||||||
{ fontSize: instructionTextSize },
|
{ fontSize: instructionTextSize },
|
||||||
);
|
);
|
||||||
this.shinyLabel.setName("text-shiny-label");
|
this.shinyLabel.setName("text-shiny-label");
|
||||||
@ -510,7 +537,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.instructionRowX + this.instructionRowTextOffset,
|
this.instructionRowX + this.instructionRowTextOffset,
|
||||||
this.instructionRowY,
|
this.instructionRowY,
|
||||||
i18next.t("pokedexUiHandler:cycleForm"),
|
i18next.t("pokedexUiHandler:cycleForm"),
|
||||||
TextStyle.PARTY,
|
TextStyle.INSTRUCTIONS_TEXT,
|
||||||
{ fontSize: instructionTextSize },
|
{ fontSize: instructionTextSize },
|
||||||
);
|
);
|
||||||
this.formLabel.setName("text-form-label");
|
this.formLabel.setName("text-form-label");
|
||||||
@ -529,7 +556,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.instructionRowX + this.instructionRowTextOffset,
|
this.instructionRowX + this.instructionRowTextOffset,
|
||||||
this.instructionRowY,
|
this.instructionRowY,
|
||||||
i18next.t("pokedexUiHandler:cycleGender"),
|
i18next.t("pokedexUiHandler:cycleGender"),
|
||||||
TextStyle.PARTY,
|
TextStyle.INSTRUCTIONS_TEXT,
|
||||||
{ fontSize: instructionTextSize },
|
{ fontSize: instructionTextSize },
|
||||||
);
|
);
|
||||||
this.genderLabel.setName("text-gender-label");
|
this.genderLabel.setName("text-gender-label");
|
||||||
@ -548,7 +575,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.instructionRowX + this.instructionRowTextOffset,
|
this.instructionRowX + this.instructionRowTextOffset,
|
||||||
this.instructionRowY,
|
this.instructionRowY,
|
||||||
i18next.t("pokedexUiHandler:cycleVariant"),
|
i18next.t("pokedexUiHandler:cycleVariant"),
|
||||||
TextStyle.PARTY,
|
TextStyle.INSTRUCTIONS_TEXT,
|
||||||
{ fontSize: instructionTextSize },
|
{ fontSize: instructionTextSize },
|
||||||
);
|
);
|
||||||
this.variantLabel.setName("text-variant-label");
|
this.variantLabel.setName("text-variant-label");
|
||||||
@ -557,7 +584,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
this.showBackSpriteIconElement.setName("show-backSprite-icon-element");
|
this.showBackSpriteIconElement.setName("show-backSprite-icon-element");
|
||||||
this.showBackSpriteIconElement.setScale(0.675);
|
this.showBackSpriteIconElement.setScale(0.675);
|
||||||
this.showBackSpriteIconElement.setOrigin(0.0, 0.0);
|
this.showBackSpriteIconElement.setOrigin(0.0, 0.0);
|
||||||
this.showBackSpriteLabel = addTextObject(60, 7, i18next.t("pokedexUiHandler:showBackSprite"), TextStyle.PARTY, {
|
this.showBackSpriteLabel = addTextObject(60, 7, i18next.t("pokedexUiHandler:showBackSprite"), TextStyle.INSTRUCTIONS_TEXT, {
|
||||||
fontSize: instructionTextSize,
|
fontSize: instructionTextSize,
|
||||||
});
|
});
|
||||||
this.showBackSpriteLabel.setName("show-backSprite-label");
|
this.showBackSpriteLabel.setName("show-backSprite-label");
|
||||||
|
Loading…
Reference in New Issue
Block a user