mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-19 18:57:37 +00:00
[QoL] Pokemon Info Container hides Enemy Modifier Bar (#1820)
* Added "Skip Dialogues" option (if at least 1 classic win) * Removed error sound and hide option instead when classic wins = 0 * Add skip dialogues option to Unlockables and show unlocked message on first classic win * Only skips seen dialogues, removed dialogue option from unlockables, seen dialogues get saved to local storage * oops * dont show charSprite when skipping a dialogue, small fixes * pokemonInfoContainer always on top of battle UI when shown * removed setDepth and rather hide enemyModifierBar --------- Co-authored-by: Frederik Hobein <frederik.hobein@nterra.com>
This commit is contained in:
parent
e599931ff3
commit
fe732bbbe6
@ -1313,6 +1313,14 @@ export default class BattleScene extends SceneBase {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showEnemyModifierBar(): void {
|
||||||
|
this.enemyModifierBar.setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
hideEnemyModifierBar(): void {
|
||||||
|
this.enemyModifierBar.setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
updateBiomeWaveText(): void {
|
updateBiomeWaveText(): void {
|
||||||
const isBoss = !(this.currentBattle.waveIndex % 10);
|
const isBoss = !(this.currentBattle.waveIndex % 10);
|
||||||
const biomeString: string = getBiomeName(this.arena.biomeType);
|
const biomeString: string = getBiomeName(this.arena.biomeType);
|
||||||
|
@ -262,6 +262,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
|
|||||||
|
|
||||||
this.setVisible(true);
|
this.setVisible(true);
|
||||||
this.shown = true;
|
this.shown = true;
|
||||||
|
this.scene.hideEnemyModifierBar();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,6 +283,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
|
|||||||
hide(speedMultiplier: number = 1): Promise<void> {
|
hide(speedMultiplier: number = 1): Promise<void> {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
if (!this.shown) {
|
if (!this.shown) {
|
||||||
|
this.scene.showEnemyModifierBar();
|
||||||
return resolve();
|
return resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,6 +304,7 @@ export default class PokemonInfoContainer extends Phaser.GameObjects.Container {
|
|||||||
this.pokemonShinyIcon.off("pointerover");
|
this.pokemonShinyIcon.off("pointerover");
|
||||||
this.pokemonShinyIcon.off("pointerout");
|
this.pokemonShinyIcon.off("pointerout");
|
||||||
(this.scene as BattleScene).ui.hideTooltip();
|
(this.scene as BattleScene).ui.hideTooltip();
|
||||||
|
this.scene.showEnemyModifierBar();
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user