From d4f5b333cba45cc8f2fef019b6dbf1bce6326ef7 Mon Sep 17 00:00:00 2001 From: usbsync Date: Wed, 1 Nov 2023 10:31:11 +0900 Subject: [PATCH] =?UTF-8?q?pauseSoundInstances,=20recoverSoundInstances=20?= =?UTF-8?q?=ED=95=A0=EB=95=8C=20bgmInstance=EB=8F=84=20paused=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/utils.js b/src/util/utils.js index ed98705f24..b744c8b5ba 100644 --- a/src/util/utils.js +++ b/src/util/utils.js @@ -2767,12 +2767,18 @@ Entry.Utils.pauseSoundInstances = function() { Entry.soundInstances.getAllValues().forEach((instance) => { instance.paused = true; }); + Entry.bgmInstances.getAllValues().forEach((instance) => { + instance.paused = true; + }); }; Entry.Utils.recoverSoundInstances = function() { Entry.soundInstances.getAllValues().forEach((instance) => { instance.paused = false; }); + Entry.bgmInstances.getAllValues().forEach((instance) => { + instance.paused = false; + }); }; Entry.Utils.hasClass = (elem, name) => ` ${elem.getAttribute('class')} `.indexOf(` ${name} `) >= 0;