Add missing case for updating touch controls UI mode

This commit is contained in:
Flashfyre 2023-12-25 15:06:56 -05:00
parent 41d1a84c76
commit ca720e8a20

View File

@ -331,6 +331,9 @@ export default class UI extends Phaser.GameObjects.Container {
const doRevertMode = () => { const doRevertMode = () => {
this.getHandler().clear(); this.getHandler().clear();
this.mode = this.modeChain.pop(); this.mode = this.modeChain.pop();
const touchControls = document.getElementById('touchControls');
if (touchControls)
touchControls.dataset.uiMode = Mode[this.mode];
}; };
if (noTransitionModes.indexOf(lastMode) === -1) { if (noTransitionModes.indexOf(lastMode) === -1) {