优化自动剧情
This commit is contained in:
parent
d8d9809da6
commit
8f596865bd
@ -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))) {
|
} else if ((core.domStyle.isVertical && inRect(pos, autoboxVertical) && !this.WindowSkin) || (!core.domStyle.isVertical && !this.WindowSkin && inRect(pos, autobox))) {
|
||||||
auto = !auto;
|
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))) { //存档
|
} else if ((core.domStyle.isVertical && inRect(pos, saveboxVertical) && !this.WindowSkin) || (!core.domStyle.isVertical && !this.WindowSkin && inRect(pos, savebox))) { //存档
|
||||||
auto = false;
|
auto = false;
|
||||||
if (core.status.event.animateUI) return;
|
if (core.status.event.animateUI) return;
|
||||||
@ -9773,6 +9782,7 @@ core.plugin.animate = {
|
|||||||
cg.style.display = "none"
|
cg.style.display = "none"
|
||||||
const data = [{ 'type': 'callSave' }, current] //插入存档事件
|
const data = [{ 'type': 'callSave' }, current] //插入存档事件
|
||||||
core.insertAction(data)
|
core.insertAction(data)
|
||||||
|
|
||||||
core.doAction();
|
core.doAction();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -9780,7 +9790,7 @@ core.plugin.animate = {
|
|||||||
// 正在淡入淡出的话不执行
|
// 正在淡入淡出的话不执行
|
||||||
if (core.status.event.animateUI) return;
|
if (core.status.event.animateUI) return;
|
||||||
auto = false;
|
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) {
|
if (core.status.event.interval != null) {
|
||||||
data.showAll = true;
|
data.showAll = true;
|
||||||
@ -9890,7 +9900,7 @@ core.plugin.animate = {
|
|||||||
|
|
||||||
if (config.time == 0) {
|
if (config.time == 0) {
|
||||||
while (_drawNext());
|
while (_drawNext());
|
||||||
if (auto && core.ui.cgText.WindowSkin) {
|
if (auto && !core.ui.cgText.WindowSkin) {
|
||||||
setTimeout(() => { if (auto) core.doAction() }, 2000)
|
setTimeout(() => { if (auto) core.doAction() }, 2000)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -9899,7 +9909,7 @@ core.plugin.animate = {
|
|||||||
if (!_drawNext()) {
|
if (!_drawNext()) {
|
||||||
clearInterval(core.status.event.interval);
|
clearInterval(core.status.event.interval);
|
||||||
core.status.event.interval = null;
|
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);
|
}, config.time);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user