diff --git a/data/GameManager.js b/data/GameManager.js index d4d2d7b..08baf98 100644 --- a/data/GameManager.js +++ b/data/GameManager.js @@ -177,7 +177,6 @@ class EJS_GameManager { }) } } catch(e) { - console.log(e, fileNames); if (fileNames.length > 1) { console.warn("Could not auto-create cue file(s)."); return null; @@ -193,11 +192,9 @@ class EJS_GameManager { console.warn("Could not auto-create cue file(s)."); return null; } - console.log(fileNames); let baseFileName = fileNames[0].split("/").pop(); if (baseFileName.includes(".")) { baseFileName = baseFileName.substring(0, baseFileName.length - baseFileName.split(".").pop().length - 1); - console.log(baseFileName); } for (let i=0; i { + this.virtualGamepad.style.display = "none"; + this.virtualGamepad.style.opacity = ""; + }, 250) + } + } if (!this.Module) return; const dpr = window.devicePixelRatio || 1; const positionInfo = this.elements.parent.getBoundingClientRect(); const width = positionInfo.width * dpr; const height = (positionInfo.height * dpr); this.Module.setCanvasSize(width, height); + if (!this.handleSettingsResize) return; this.handleSettingsResize(); - if (this.virtualGamepad.style.display === "none") { - this.virtualGamepad.style.opacity = 0; - this.virtualGamepad.style.display = ""; - setTimeout(() => { - this.virtualGamepad.style.display = "none"; - this.virtualGamepad.style.opacity = ""; - }, 250) - } } getElementSize(element) { let elem = element.cloneNode(true);