From 83fb359179e88a8199c401fac499be8d8f3c1e28 Mon Sep 17 00:00:00 2001 From: oc Date: Sun, 17 Mar 2019 02:07:06 +0800 Subject: [PATCH] Fix diff' --- _server/css/editor.css | 1 - _server/editor.js | 2 +- libs/utils.js | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_server/css/editor.css b/_server/css/editor.css index 8126b33c..b37149bb 100644 --- a/_server/css/editor.css +++ b/_server/css/editor.css @@ -148,7 +148,6 @@ body { height: 180px; left: 0; bottom: 0; - border-top: 1px solid #ccc; padding: 10px 5px; margin-left: 8px;; box-sizing: border-box; diff --git a/_server/editor.js b/_server/editor.js index 384191d3..e88f264d 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -721,7 +721,7 @@ editor.prototype.listen = function () { mouseOutCheck = 2; setTimeout(clear1); e.stopPropagation(); - uc.clearRect(0, 0, 416, 416); + uc.clearRect(0, 0, core.__SIZE__, core.__SIZE__); var loc = eToLoc(e); var pos = locToPos(loc,true); stepPostfix = []; diff --git a/libs/utils.js b/libs/utils.js index 3c574036..8e4bdfc1 100644 --- a/libs/utils.js +++ b/libs/utils.js @@ -792,7 +792,7 @@ utils.prototype.readFileContent = function (content) { main.log(e); alert(e); } - alert("不是有效的JSON文件!"); + // alert("不是有效的JSON文件!"); if (core.platform.errorCallback) core.platform.errorCallback(); @@ -1049,7 +1049,7 @@ utils.prototype._export = function (floorIds) { // map var content = floorIds.length + "\n" + core.__SIZE__ + " " + core.__SIZE__ + "\n\n"; floorIds.forEach(function (floorId) { - var arr = core.maps.getMapArray(core.status.maps[floorId].blocks, 13, 13); + var arr = core.maps.getMapArray(core.status.maps[floorId].blocks); content += arr.map(function (x) { // check monster x.forEach(function (t) {