mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-03 14:47:12 +00:00
b9f7ba173d
* Add WiP logic for double battles * Minor changes for double battles * More fixes for double battles * Show battle info for both in double battles * Improvements to double battles * Add double battle version of party UI * Fix some issues with double battles * Updates to double battles * More work on double battles for stability * Fix issues with ability bar and evolution screen * Add chance for double battles
34 lines
885 B
TypeScript
34 lines
885 B
TypeScript
import BattleScene, { Button } from "../battle-scene";
|
|
import { Mode } from "./ui";
|
|
import UiHandler from "./uiHandler";
|
|
|
|
export default class EvolutionSceneHandler extends UiHandler {
|
|
public evolutionContainer: Phaser.GameObjects.Container;
|
|
|
|
constructor(scene: BattleScene) {
|
|
super(scene, Mode.EVOLUTION_SCENE);
|
|
}
|
|
|
|
setup() {
|
|
this.evolutionContainer = this.scene.add.container(0, -this.scene.game.canvas.height / 6);
|
|
this.scene.fieldUI.add(this.evolutionContainer);
|
|
}
|
|
|
|
show(_args: any[]): void {
|
|
super.show(_args);
|
|
|
|
this.scene.fieldUI.bringToTop(this.evolutionContainer);
|
|
}
|
|
|
|
processInput(button: Button) {
|
|
this.scene.ui.getMessageHandler().processInput(button);
|
|
}
|
|
|
|
setCursor(_cursor: integer): boolean {
|
|
return false;
|
|
}
|
|
|
|
clear() {
|
|
this.evolutionContainer.removeAll(true);
|
|
}
|
|
}
|