mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Japanese custom lineSpacing adjustment
This commit is contained in:
parent
afdd46bf9a
commit
9bf013c26b
@ -603,7 +603,7 @@ export default class RunInfoUiHandler extends UiHandler {
|
|||||||
// Duration + Money
|
// Duration + Money
|
||||||
const runInfoTextContainer = globalScene.add.container(0, 0);
|
const runInfoTextContainer = globalScene.add.container(0, 0);
|
||||||
// Japanese is set to a greater line spacing of 35px in addBBCodeTextObject() if lineSpacing < 12.
|
// Japanese is set to a greater line spacing of 35px in addBBCodeTextObject() if lineSpacing < 12.
|
||||||
const lineSpacing = i18next.resolvedLanguage === "ja" ? 12 : 3;
|
const lineSpacing = i18next.resolvedLanguage === "ja" ? 4 : 3;
|
||||||
const runInfoText = addBBCodeTextObject(7, 0, "", TextStyle.WINDOW, {
|
const runInfoText = addBBCodeTextObject(7, 0, "", TextStyle.WINDOW, {
|
||||||
fontSize: "50px",
|
fontSize: "50px",
|
||||||
lineSpacing: lineSpacing,
|
lineSpacing: lineSpacing,
|
||||||
@ -768,7 +768,7 @@ export default class RunInfoUiHandler extends UiHandler {
|
|||||||
const pPassiveInfo = pokemon.passive ? passiveLabel + ": " + pokemon.getPassiveAbility().name : "";
|
const pPassiveInfo = pokemon.passive ? passiveLabel + ": " + pokemon.getPassiveAbility().name : "";
|
||||||
const pAbilityInfo = abilityLabel + ": " + pokemon.getAbility().name;
|
const pAbilityInfo = abilityLabel + ": " + pokemon.getAbility().name;
|
||||||
// Japanese is set to a greater line spacing of 35px in addBBCodeTextObject() if lineSpacing < 12.
|
// Japanese is set to a greater line spacing of 35px in addBBCodeTextObject() if lineSpacing < 12.
|
||||||
const lineSpacing = i18next.resolvedLanguage === "ja" ? 12 : 3;
|
const lineSpacing = i18next.resolvedLanguage === "ja" ? 4 : 3;
|
||||||
const pokeInfoText = addBBCodeTextObject(0, 0, pName, TextStyle.SUMMARY, {
|
const pokeInfoText = addBBCodeTextObject(0, 0, pName, TextStyle.SUMMARY, {
|
||||||
fontSize: textContainerFontSize,
|
fontSize: textContainerFontSize,
|
||||||
lineSpacing: lineSpacing,
|
lineSpacing: lineSpacing,
|
||||||
|
Loading…
Reference in New Issue
Block a user