pokerogue/src/ui/evolution-scene-handler.ts

34 lines
885 B
TypeScript
Raw Normal View History

import BattleScene, { Button } from "../battle-scene";
2023-04-10 18:54:06 +01:00
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);
}
2023-04-10 18:54:06 +01:00
processInput(button: Button) {
this.scene.ui.getMessageHandler().processInput(button);
2023-04-10 18:54:06 +01:00
}
setCursor(_cursor: integer): boolean {
return false;
}
clear() {
this.evolutionContainer.removeAll(true);
}
}