Added ability-passive imgs to summary-ui-handler. Fixed exp bar
parent
5abbd7c9da
commit
872c53437c
|
@ -123,6 +123,8 @@ export class LoadingScene extends SceneBase {
|
||||||
this.loadImage(`summary_moves_effect_${lang}`, 'ui');
|
this.loadImage(`summary_moves_effect_${lang}`, 'ui');
|
||||||
this.loadImage(`summary_profile_${lang}`, 'ui');
|
this.loadImage(`summary_profile_${lang}`, 'ui');
|
||||||
this.loadImage(`summary_stats_${lang}`, 'ui');
|
this.loadImage(`summary_stats_${lang}`, 'ui');
|
||||||
|
this.loadImage(`summary_profile_ability_${lang}`, 'ui');
|
||||||
|
this.loadImage(`summary_profile_passive_${lang}`, 'ui');
|
||||||
for (let t = 1; t <= 3; t++){
|
for (let t = 1; t <= 3; t++){
|
||||||
this.loadImage(`summary_tabs_${t}_${lang}`, 'ui');
|
this.loadImage(`summary_tabs_${t}_${lang}`, 'ui');
|
||||||
}
|
}
|
||||||
|
|
|
@ -720,7 +720,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.abilityContainer = {
|
this.abilityContainer = {
|
||||||
labelImage: this.scene.add.image(0, 0, 'summary_profile_ability'),
|
labelImage: this.scene.add.image(0, 0, Utils.verifyLang() ? `summary_profile_ability_${i18next.language}`: 'summary_profile_ability'),
|
||||||
ability: this.pokemon.getAbility(true),
|
ability: this.pokemon.getAbility(true),
|
||||||
nameText: null,
|
nameText: null,
|
||||||
descriptionText: null};
|
descriptionText: null};
|
||||||
|
@ -729,7 +729,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
// Only add to the array and set up displaying a passive if it's unlocked
|
// Only add to the array and set up displaying a passive if it's unlocked
|
||||||
if (this.pokemon.hasPassive()) {
|
if (this.pokemon.hasPassive()) {
|
||||||
this.passiveContainer = {
|
this.passiveContainer = {
|
||||||
labelImage: this.scene.add.image(0, 0, 'summary_profile_passive'),
|
labelImage: this.scene.add.image(0, 0, Utils.verifyLang() ? `summary_profile_passive_${i18next.language}`: 'summary_profile_passive'),
|
||||||
ability: this.pokemon.getPassiveAbility(),
|
ability: this.pokemon.getPassiveAbility(),
|
||||||
nameText: null,
|
nameText: null,
|
||||||
descriptionText: null};
|
descriptionText: null};
|
||||||
|
@ -859,7 +859,7 @@ export default class SummaryUiHandler extends UiHandler {
|
||||||
nextLvExpText.setOrigin(1, 0);
|
nextLvExpText.setOrigin(1, 0);
|
||||||
statsContainer.add(nextLvExpText);
|
statsContainer.add(nextLvExpText);
|
||||||
|
|
||||||
const expOverlay = this.scene.add.image(140, 145, Utils.verifyLang() ? `summary_stats_overlay_exp_${i18next.language}`: 'summary_stats_overlay_exp');
|
const expOverlay = this.scene.add.image(140, 145, 'summary_stats_overlay_exp');
|
||||||
expOverlay.setOrigin(0, 0);
|
expOverlay.setOrigin(0, 0);
|
||||||
statsContainer.add(expOverlay);
|
statsContainer.add(expOverlay);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue