Fixed img loading issue with summary_tabs_2 for fr, pt_BR and zh_CN
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 245 B |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
|
@ -115,7 +115,7 @@ export class LoadingScene extends SceneBase {
|
||||||
for (let t = 1; t <= 3; t++){
|
for (let t = 1; t <= 3; t++){
|
||||||
this.loadImage(`summary_tabs_${t}`, 'ui');
|
this.loadImage(`summary_tabs_${t}`, 'ui');
|
||||||
}
|
}
|
||||||
i18next.languages.forEach(lang => {
|
(i18next.options.supportedLngs as Array<any>).forEach(lang => {
|
||||||
if(Utils.verifyLang(lang)){
|
if(Utils.verifyLang(lang)){
|
||||||
this.loadImage(`starter_select_bg_${lang}`, 'ui');
|
this.loadImage(`starter_select_bg_${lang}`, 'ui');
|
||||||
this.loadImage(`summary_bg_${lang}`, 'ui');
|
this.loadImage(`summary_bg_${lang}`, 'ui');
|
||||||
|
@ -206,7 +206,7 @@ export class LoadingScene extends SceneBase {
|
||||||
this.loadAtlas('pb', '');
|
this.loadAtlas('pb', '');
|
||||||
this.loadAtlas('items', '');
|
this.loadAtlas('items', '');
|
||||||
this.loadAtlas('types', '');
|
this.loadAtlas('types', '');
|
||||||
i18next.languages.forEach(lang => {
|
(i18next.options.supportedLngs as Array<any>).forEach(lang => {
|
||||||
if(Utils.verifyLang(lang)){
|
if(Utils.verifyLang(lang)){
|
||||||
this.loadAtlas(`types_${lang}`, '');
|
this.loadAtlas(`types_${lang}`, '');
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
In case a new lang is added, it should be added to the function verifyLang of Utils as well, but only after
|
||||||
|
adding all the necessary lang images:
|
||||||
|
- starter_select_bg_LANGNAME
|
||||||
|
- summary_bg_LANGNAME
|
||||||
|
- summary_moves_LANGNAME
|
||||||
|
- summary_moves_effect_LANGNAME
|
||||||
|
- summary_profile_LANGNAME
|
||||||
|
- summary_stats_LANGNAME
|
||||||
|
- summary_tabs_1_LANGNAME
|
||||||
|
- summary_tabs_2_LANGNAME
|
||||||
|
- summary_tabs_3_LANGNAME
|
||||||
|
These images should be added to the legacy folder as well
|
|
@ -804,7 +804,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
stats.forEach((stat, s) => {
|
stats.forEach((stat, s) => {
|
||||||
const statName = stat !== Stat.HP
|
const statName = stat !== Stat.HP
|
||||||
? getStatName(stat)
|
? getStatName(stat)
|
||||||
: 'HP';
|
: i18next.t('pokemonStat:HP');
|
||||||
const rowIndex = s % 3;
|
const rowIndex = s % 3;
|
||||||
const colIndex = Math.floor(s / 3);
|
const colIndex = Math.floor(s / 3);
|
||||||
|
|
||||||
|
|