backlog修复
This commit is contained in:
parent
4cfa92280b
commit
bc94e6d169
@ -15991,7 +15991,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
) {
|
) {
|
||||||
if (core.domStyle.isVertical) {
|
if (core.domStyle.isVertical) {
|
||||||
const sound =
|
const sound =
|
||||||
this.textList[
|
core.plugin[this.textList][
|
||||||
(this.page - 1) * 6 +
|
(this.page - 1) * 6 +
|
||||||
Math.min(Math.floor((px - 198) / 150), 5)
|
Math.min(Math.floor((px - 198) / 150), 5)
|
||||||
][2];
|
][2];
|
||||||
@ -15999,7 +15999,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.playSound(sound);
|
core.playSound(sound);
|
||||||
} else {
|
} else {
|
||||||
const sound =
|
const sound =
|
||||||
this.textList[
|
core.plugin[this.textList][
|
||||||
(this.page - 1) * 6 +
|
(this.page - 1) * 6 +
|
||||||
Math.min(Math.floor((py - 150) / 150), 5)
|
Math.min(Math.floor((py - 150) / 150), 5)
|
||||||
][2];
|
][2];
|
||||||
@ -16311,14 +16311,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
for (
|
for (
|
||||||
let i = (page - 1) * 6; i <= Math.min(this.index, page * 6 - 1); i++
|
let i = (page - 1) * 6; i <= Math.min(this.index, page * 6 - 1); i++
|
||||||
) {
|
) {
|
||||||
const text = this.textList[i][1].replaceAll(
|
const text = core.plugin[this.textList][i][1].replaceAll(
|
||||||
/(\\(d|e|f|g|i|n|r|b|c|t|z))(\[.*?\])?/g,
|
/(\\(d|e|f|g|i|n|r|b|c|t|z))(\[.*?\])?/g,
|
||||||
""
|
""
|
||||||
); //取消打字机
|
); //取消打字机
|
||||||
const name = this.textList[i][0] ?
|
const name = core.plugin[this.textList][i][0] ?
|
||||||
"【" + this.textList[i][0] + "】" :
|
"【" + core.plugin[this.textList][i][0] + "】" :
|
||||||
"";
|
"";
|
||||||
const sound = this.textList[i][2];
|
const sound = core.plugin[this.textList][i][2];
|
||||||
if (name) {
|
if (name) {
|
||||||
core.fillBoldText1(
|
core.fillBoldText1(
|
||||||
logctx,
|
logctx,
|
||||||
@ -23775,6 +23775,39 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
control.prototype._doSL_save = function (id) {
|
||||||
|
if (id == "autoSave") {
|
||||||
|
core.playSound("操作失败");
|
||||||
|
return core.drawTip("不能覆盖自动存档!");
|
||||||
|
}
|
||||||
|
// 在事件中的存档
|
||||||
|
if (core.status.event.interval != null)
|
||||||
|
core.setFlag("__events__", core.status.event.interval);
|
||||||
|
var data = core.saveData();
|
||||||
|
if (core.isReplaying() && core.status.replay.toReplay.length > 0) {
|
||||||
|
data.__toReplay__ = core.encodeRoute(core.status.replay.toReplay);
|
||||||
|
}
|
||||||
|
core.setLocalStorage("_slText" + id)
|
||||||
|
core.setLocalForage(
|
||||||
|
"save" + id,
|
||||||
|
data,
|
||||||
|
function () {
|
||||||
|
core.saves.saveIndex = id;
|
||||||
|
core.setLocalStorage("saveIndex", core.saves.saveIndex);
|
||||||
|
// 恢复事件
|
||||||
|
if (!core.events.recoverEvents(core.status.event.interval))
|
||||||
|
core.ui.closePanel();
|
||||||
|
core.playSound("存档");
|
||||||
|
core.drawTip("存档成功!");
|
||||||
|
},
|
||||||
|
function (err) {
|
||||||
|
console.error(err);
|
||||||
|
alert("存档失败,错误信息:\n" + err);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
core.removeFlag("__events__");
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
function saveLoadclick(x, y) { //点击画布(x,y)触发的效果
|
function saveLoadclick(x, y) { //点击画布(x,y)触发的效果
|
||||||
const makeBox = ([x, y], [w, h]) => { //创建点击检测区域
|
const makeBox = ([x, y], [w, h]) => { //创建点击检测区域
|
||||||
@ -24015,7 +24048,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.ui._drawSLPanel(10 * page + offset);
|
core.ui._drawSLPanel(10 * page + offset);
|
||||||
} else if (value) {
|
} else if (value) {
|
||||||
alert("无效的输入!");
|
alert("无效的输入!");
|
||||||
} else {
|
} else if (value === "") {
|
||||||
delete core.saves.favoriteName[real_id];
|
delete core.saves.favoriteName[real_id];
|
||||||
core.control._updateFavoriteSaves();
|
core.control._updateFavoriteSaves();
|
||||||
core.ui._drawSLPanel(10 * page + offset);
|
core.ui._drawSLPanel(10 * page + offset);
|
||||||
@ -24042,7 +24075,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.ui._drawSLPanel(10 * page + offset);
|
core.ui._drawSLPanel(10 * page + offset);
|
||||||
} else if (value) {
|
} else if (value) {
|
||||||
alert("无效的输入!");
|
alert("无效的输入!");
|
||||||
} else {
|
} else if (value === "") {
|
||||||
core.setLocalStorage("_slText" + real_id)
|
core.setLocalStorage("_slText" + real_id)
|
||||||
core.ui._drawSLPanel(10 * page + offset);
|
core.ui._drawSLPanel(10 * page + offset);
|
||||||
}
|
}
|
||||||
@ -24059,7 +24092,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
core.ui._drawSLPanel(10 * page + offset);
|
core.ui._drawSLPanel(10 * page + offset);
|
||||||
} else if (value) {
|
} else if (value) {
|
||||||
alert("无效的输入!");
|
alert("无效的输入!");
|
||||||
} else {
|
} else if (value === "") {
|
||||||
core.setLocalStorage("slClass_" + core.status.event.data.mode[6])
|
core.setLocalStorage("slClass_" + core.status.event.data.mode[6])
|
||||||
core.ui._drawSLPanel(10 * page + offset);
|
core.ui._drawSLPanel(10 * page + offset);
|
||||||
}
|
}
|
||||||
@ -25412,36 +25445,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
actions.prototype._clickSL_favorite = function (page, offset) {
|
|
||||||
if (offset == 0) return;
|
|
||||||
var index = 9 * page + offset;
|
|
||||||
if (core.status.event.data.mode == 'fav') { // 收藏模式下点击的下标直接对应favorite
|
|
||||||
index = core.saves.favorite[index - 1];
|
|
||||||
core.myprompt("请输入想要显示的存档名(长度不超过5字符)", null, function (value) {
|
|
||||||
if (value && value.length <= 5) {
|
|
||||||
core.saves.favoriteName[index] = value;
|
|
||||||
core.control._updateFavoriteSaves();
|
|
||||||
core.ui._drawSLPanel(10 * page + offset);
|
|
||||||
} else if (value) {
|
|
||||||
alert("无效的输入!");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
var v = core.saves.favorite.indexOf(index);
|
|
||||||
core.playSound('确定');
|
|
||||||
if (v >= 0) { // 已经处于收藏状态:取消收藏
|
|
||||||
core.saves.favorite.splice(v, 1);
|
|
||||||
delete core.saves.favoriteName[index];
|
|
||||||
} else if (core.hasSave(index)) { // 存在存档则进行收藏
|
|
||||||
core.saves.favorite.push(index);
|
|
||||||
core.saves.favorite = core.saves.favorite.sort(function (a, b) { return a - b; }); // 保证有序
|
|
||||||
core.drawTip("收藏成功!");
|
|
||||||
}
|
|
||||||
core.control._updateFavoriteSaves();
|
|
||||||
core.ui._drawSLPanel(10 * page + offset);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
////// 存读档界面时,按下某个键的操作 //////
|
////// 存读档界面时,按下某个键的操作 //////
|
||||||
actions.prototype._keyDownSL = function (keycode) {
|
actions.prototype._keyDownSL = function (keycode) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user