From ccae1b9ba10f0ceb87f2d21169979807938335fa Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 25 Dec 2018 19:35:46 +0800 Subject: [PATCH] Mobile highlight canvas --- _server/editor.js | 14 ++++++++++++++ libs/control.js | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/_server/editor.js b/_server/editor.js index 871966c2..7d1ed1e2 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -1166,6 +1166,20 @@ editor.prototype.listen = function () { [bgc,fgc,evc,ev2c].forEach(function (x) { x.style.opacity = 1; }); + + // 手机端.... + if (editor.isMobile) { + if (layerMod.value == 'bgmap') { + [fgc,evc,ev2c].forEach(function (x) { + x.style.opacity = 0.3; + }); + } + if (layerMod.value == 'fgmap') { + [bgc,evc,ev2c].forEach(function (x) { + x.style.opacity = 0.3; + }); + } + } } var layerMod2=document.getElementById('layerMod2'); diff --git a/libs/control.js b/libs/control.js index 55b41314..17225c96 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2121,7 +2121,7 @@ control.prototype.doSL = function (id, type) { alert("无效的存档"); return; } - if (core.isset(data.hashCode) && data.hashCode != core.utils.hashCode(data.hero)) { + if (core.flags.checkConsole && core.isset(data.hashCode) && data.hashCode != core.utils.hashCode(data.hero)) { if (confirm("存档校验失败,请勿修改存档文件!\n你想回放此存档的录像吗?")) { core.startGame(data.hard, data.hero.flags.__seed__, core.decodeRoute(data.route)); }