Add retry option (easy mode)

This commit is contained in:
Flashfyre committed 2024-04-04 15:22:05 -04:00
1 parent 23a8fb1fc9
commit 326918a5f1
6 files changed
+75 -7

No files matched your search

+12
View File
@@ -15,6 +15,8 @@ export default class BiomeSelectUiHandler extends UiHandler {
private cursorObj: Phaser.GameObjects.Image;
private blockInput: boolean;
private biomeSelectHandler: Function;
constructor(scene: BattleScene) {
@@ -59,12 +61,22 @@ export default class BiomeSelectUiHandler extends UiHandler {
this.biomeSelectContainer.setVisible(true);
this.setCursor(0);
this.blockInput = true;
this.biomesText.setAlpha(0.5);
this.scene.time.delayedCall(Utils.fixedInt(1000), () => {
this.blockInput = false;
this.biomesText.setAlpha(1);
});
}
return true;
}
processInput(button: Button): boolean {
if (this.blockInput)
return false;
const ui = this.getUi();
let success = false;