From ca720e8a207edb7f7db7de7cd09ab3d5a2d47358 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 25 Dec 2023 15:06:56 -0500 Subject: [PATCH] Add missing case for updating touch controls UI mode --- src/ui/ui.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/ui.ts b/src/ui/ui.ts index a21d9c016..0271c93a7 100644 --- a/src/ui/ui.ts +++ b/src/ui/ui.ts @@ -331,6 +331,9 @@ export default class UI extends Phaser.GameObjects.Container { const doRevertMode = () => { this.getHandler().clear(); this.mode = this.modeChain.pop(); + const touchControls = document.getElementById('touchControls'); + if (touchControls) + touchControls.dataset.uiMode = Mode[this.mode]; }; if (noTransitionModes.indexOf(lastMode) === -1) {