Add a couple starter select localization entries
The passive ability's "Locked" and "Disabled" strings can now be localized.
This commit is contained in:
parent
9a49691a9e
commit
34a4f86982
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": "N: Wesen Ändern",
|
"cycleNature": "N: Wesen Ändern",
|
||||||
"cycleVariant": "V: Seltenheit ändern",
|
"cycleVariant": "V: Seltenheit ändern",
|
||||||
"enablePassive": "Passiv-Skill aktivieren",
|
"enablePassive": "Passiv-Skill aktivieren",
|
||||||
"disablePassive": "Passiv-Skill deaktivieren"
|
"disablePassive": "Passiv-Skill deaktivieren",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": 'N: Cycle Nature',
|
"cycleNature": 'N: Cycle Nature',
|
||||||
"cycleVariant": 'V: Cycle Variant',
|
"cycleVariant": 'V: Cycle Variant',
|
||||||
"enablePassive": "Enable Passive",
|
"enablePassive": "Enable Passive",
|
||||||
"disablePassive": "Disable Passive"
|
"disablePassive": "Disable Passive",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": 'N: Cambiar Naturaleza',
|
"cycleNature": 'N: Cambiar Naturaleza',
|
||||||
"cycleVariant": 'V: Cambiar Variante',
|
"cycleVariant": 'V: Cambiar Variante',
|
||||||
"enablePassive": "Activar Pasiva",
|
"enablePassive": "Activar Pasiva",
|
||||||
"disablePassive": "Desactivar Pasiva"
|
"disablePassive": "Desactivar Pasiva",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": "N: » Natures",
|
"cycleNature": "N: » Natures",
|
||||||
"cycleVariant": "V: » Variants",
|
"cycleVariant": "V: » Variants",
|
||||||
"enablePassive": "Activer Passif",
|
"enablePassive": "Activer Passif",
|
||||||
"disablePassive": "Désactiver Passif"
|
"disablePassive": "Désactiver Passif",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": 'N: Alterna Natura',
|
"cycleNature": 'N: Alterna Natura',
|
||||||
"cycleVariant": 'V: Alterna Variante',
|
"cycleVariant": 'V: Alterna Variante',
|
||||||
"enablePassive": "Attiva Passiva",
|
"enablePassive": "Attiva Passiva",
|
||||||
"disablePassive": "Disattiva Passiva"
|
"disablePassive": "Disattiva Passiva",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": 'N: Mudar Nature',
|
"cycleNature": 'N: Mudar Nature',
|
||||||
"cycleVariant": 'V: Mudar Variante',
|
"cycleVariant": 'V: Mudar Variante',
|
||||||
"enablePassive": "Ativar Passiva",
|
"enablePassive": "Ativar Passiva",
|
||||||
"disablePassive": "Desativar Passiva"
|
"disablePassive": "Desativar Passiva",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
|
@ -28,5 +28,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = {
|
||||||
"cycleNature": 'N: 切换性格',
|
"cycleNature": 'N: 切换性格',
|
||||||
"cycleVariant": 'V: 切换变种',
|
"cycleVariant": 'V: 切换变种',
|
||||||
"enablePassive": "启用被动",
|
"enablePassive": "启用被动",
|
||||||
"disablePassive": "禁用被动"
|
"disablePassive": "禁用被动",
|
||||||
|
"locked": "Locked",
|
||||||
|
"disabled": "Disabled"
|
||||||
}
|
}
|
|
@ -1580,7 +1580,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
||||||
this.pokemonAbilityText.setShadowColor(this.getTextColor(!isHidden ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GOLD, true));
|
this.pokemonAbilityText.setShadowColor(this.getTextColor(!isHidden ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GOLD, true));
|
||||||
|
|
||||||
const passiveAttr = this.scene.gameData.starterData[species.speciesId].passiveAttr;
|
const passiveAttr = this.scene.gameData.starterData[species.speciesId].passiveAttr;
|
||||||
this.pokemonPassiveText.setText(passiveAttr & PassiveAttr.UNLOCKED ? passiveAttr & PassiveAttr.ENABLED ? allAbilities[starterPassiveAbilities[this.lastSpecies.speciesId]].name : 'Disabled' : 'Locked');
|
this.pokemonPassiveText.setText(passiveAttr & PassiveAttr.UNLOCKED ? passiveAttr & PassiveAttr.ENABLED ? allAbilities[starterPassiveAbilities[this.lastSpecies.speciesId]].name : i18next.t("starterSelectUiHandler:disabled") : i18next.t("starterSelectUiHandler:locked"));
|
||||||
this.pokemonPassiveText.setColor(this.getTextColor(passiveAttr === (PassiveAttr.UNLOCKED | PassiveAttr.ENABLED) ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY));
|
this.pokemonPassiveText.setColor(this.getTextColor(passiveAttr === (PassiveAttr.UNLOCKED | PassiveAttr.ENABLED) ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY));
|
||||||
this.pokemonPassiveText.setShadowColor(this.getTextColor(passiveAttr === (PassiveAttr.UNLOCKED | PassiveAttr.ENABLED) ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY, true));
|
this.pokemonPassiveText.setShadowColor(this.getTextColor(passiveAttr === (PassiveAttr.UNLOCKED | PassiveAttr.ENABLED) ? TextStyle.SUMMARY_ALT : TextStyle.SUMMARY_GRAY, true));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue