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); }