mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-12-03 12:16:22 +00:00
00255cb09a
Fully implement save slots and ""title"" screen changes; fix issues with slots including clear data not working on game over and export/import not working; fix session play time not being recorded correctly
39 lines
825 B
TypeScript
39 lines
825 B
TypeScript
import BattleScene from "../battle-scene";
|
|
import { ModalUiHandler } from "./modal-ui-handler";
|
|
import { addTextObject, TextStyle } from "./text";
|
|
import { Mode } from "./ui";
|
|
|
|
export default class LoadingModalUiHandler extends ModalUiHandler {
|
|
constructor(scene: BattleScene, mode?: Mode) {
|
|
super(scene, mode);
|
|
}
|
|
|
|
getModalTitle(): string {
|
|
return '';
|
|
}
|
|
|
|
getWidth(): number {
|
|
return 80;
|
|
}
|
|
|
|
getHeight(): number {
|
|
return 32;
|
|
}
|
|
|
|
getMargin(): [number, number, number, number] {
|
|
return [ 0, 0, 48, 0 ];
|
|
}
|
|
|
|
getButtonLabels(): string[] {
|
|
return [ ];
|
|
}
|
|
|
|
setup(): void {
|
|
super.setup();
|
|
|
|
const label = addTextObject(this.scene, this.getWidth() / 2, this.getHeight() / 2, 'Loading…', TextStyle.WINDOW);
|
|
label.setOrigin(0.5, 0.5);
|
|
|
|
this.modalContainer.add(label);
|
|
}
|
|
} |