From 8d584025b7ffafffa2e95605b5a3378f39e99362 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Thu, 19 Mar 2026 15:37:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E4=B8=8D=E8=83=BD=E9=A9=AC=E4=B8=8A=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=88=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8cursor=E7=BC=96=E7=A8=8B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/project/plugins.js b/project/plugins.js index 5d4b1130..253033e5 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -8963,7 +8963,24 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }, bgm: { getName: () => '音乐:' + (core.musicStatus.bgmStatus ? '开' : '关'), - effect: core.actions._clickSwitchs_sounds_bgm, + effect: function () { + const bc = + core.plugin.audioSystem && + core.plugin.audioSystem.bgmController; + if (bc) { + const saved = bc.transitionTime; + bc.setTransitionTime(0); + try { + core.actions._clickSwitchs_sounds_bgm(); + } finally { + setTimeout(function () { + bc.setTransitionTime(saved); + }, 0); + } + } else { + core.actions._clickSwitchs_sounds_bgm(); + } + }, text: '播放背景音乐。', replay: false, },