From 8f596865bd85666074ac9e191ebb161281ba6dbd Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Sat, 21 Dec 2024 23:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=8A=A8=E5=89=A7?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index e4859bc..7c4d4c8 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -9762,6 +9762,15 @@ core.plugin.animate = { } else if ((core.domStyle.isVertical && inRect(pos, autoboxVertical) && !this.WindowSkin) || (!core.domStyle.isVertical && !this.WindowSkin && inRect(pos, autobox))) { auto = !auto; + const data = core.clone(core.status.event.data.current); + data.showAll = true; + data.time = 0 + data.text = data.text.replace(/(\\(z))(\[.*?])?/g, ""); //去除打字机暂停效果 + core.insertAction(data); + + core.doAction() + + } else if ((core.domStyle.isVertical && inRect(pos, saveboxVertical) && !this.WindowSkin) || (!core.domStyle.isVertical && !this.WindowSkin && inRect(pos, savebox))) { //存档 auto = false; if (core.status.event.animateUI) return; @@ -9773,6 +9782,7 @@ core.plugin.animate = { cg.style.display = "none" const data = [{ 'type': 'callSave' }, current] //插入存档事件 core.insertAction(data) + core.doAction(); } else { @@ -9780,7 +9790,7 @@ core.plugin.animate = { // 正在淡入淡出的话不执行 if (core.status.event.animateUI) return; auto = false; - var data = core.clone(core.status.event.data.current); + const data = core.clone(core.status.event.data.current); // 打字机效果显示全部文字 if (core.status.event.interval != null) { data.showAll = true; @@ -9890,7 +9900,7 @@ core.plugin.animate = { if (config.time == 0) { while (_drawNext()); - if (auto && core.ui.cgText.WindowSkin) { + if (auto && !core.ui.cgText.WindowSkin) { setTimeout(() => { if (auto) core.doAction() }, 2000) } } else { @@ -9899,7 +9909,7 @@ core.plugin.animate = { if (!_drawNext()) { clearInterval(core.status.event.interval); core.status.event.interval = null; - setTimeout(() => { if (auto) core.doAction() }, 2000) + if (auto && !core.ui.cgText.WindowSkin) setTimeout(() => { if (auto) core.doAction() }, 2000) } }, config.time); }