From 8037da866359524ee0c0aded618dd80df0a9ed9b Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Sun, 7 Sep 2025 11:21:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BD=95=E5=83=8F=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E6=89=93=E5=BC=80=E6=96=B0=E8=A3=85=E5=A4=87=E6=A0=8F?= =?UTF-8?q?=E5=85=B3=E4=B8=8D=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/project/plugins.js b/project/plugins.js index 527846fa..a2a29762 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2877,6 +2877,15 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.actions._keyDownToolbox = core.actions._keyDownEquipbox = function (keyCode) { return true; }.bind(core.actions); core.actions._clickToolbox = core.actions._clickEquipbox = function (x, y, px, py) { return true; }.bind(core.actions); core.actions._keyUpToolbox = core.actions._keyUpEquipbox = function (keyCode) { return true; }.bind(core.actions); + // 暂不考虑修改core.status.event.id,该变量牵涉太多,作用不完全清楚 + // 录像模式下下列函数会进行检测,不处于特定模式时,阻止自定义监听事件 + core.actions._checkReplaying = function () { + if (core.isReplaying() && !UI._back?.onDraw && + ['save', 'book', 'book-detail', 'viewMaps', 'toolbox', 'equipbox', 'text'].indexOf(core.status.event.id) < 0) { + return true; + } + return false; + }.bind(core.actions); const oriClosePanel = core.ui.closePanel; core.ui.closePanel = function () { @@ -4037,7 +4046,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = /** @param {'all'|'equips'} currType */ function drawItemBox(currType) { UI.clearAll(); - if (UI._toolInv && UI._toolInv.onDraw && currType === UI.type) return; + if (UI._toolInv && UI._toolInv?.onDraw && currType === UI.type) return; core.lockControl(); UI.type = currType; UI.itemInv.updateItemList();