Expand tutorials

This commit is contained in:
Flashfyre committed 2024-02-14 10:44:55 -05:00
1 parent 2da283c600
commit 24bf116b37
8 files changed
+116 -23

No files matched your search

+7 -1
View File
@@ -29,6 +29,7 @@ import RegistrationFormUiHandler from './registration-form-ui-handler';
import LoadingModalUiHandler from './loading-modal-ui-handler';
import * as Utils from "../utils";
import GameStatsUiHandler from './game-stats-ui-handler';
import AwaitableUiHandler from './awaitable-ui-handler';
export enum Mode {
MESSAGE,
@@ -174,7 +175,12 @@ export default class UI extends Phaser.GameObjects.Container {
if (this.overlayActive)
return false;
return this.getHandler().processInput(button);
const handler = this.getHandler();
if (handler instanceof AwaitableUiHandler && handler.tutorialActive)
return handler.processTutorialInput(button);
return handler.processInput(button);
}
showText(text: string, delay?: integer, callback?: Function, callbackDelay?: integer, prompt?: boolean, promptDelay?: integer): void {