From fda4949403ea2c7542409e06faa8470746c9246f Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 9 Jun 2020 12:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A2=9D=E5=A4=96=E7=B4=A0?= =?UTF-8?q?=E6=9D=90=E7=9A=84=E5=8C=BA=E5=9F=9F=E4=B8=8D=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _server/editor_mappanel.js | 5 +++++ _server/editor_ui.js | 1 + 2 files changed, 6 insertions(+) diff --git a/_server/editor_mappanel.js b/_server/editor_mappanel.js index 4fcafd0a..ae10844e 100644 --- a/_server/editor_mappanel.js +++ b/_server/editor_mappanel.js @@ -845,6 +845,7 @@ editor_mappanel_wrapper = function (editor) { e.stopImmediatePropagation(); e.stopPropagation(); if (editor.isMobile) return false; + editor.uivalues.tileSize = [1,1]; var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft var scrollTop = document.documentElement.scrollTop || document.body.scrollTop @@ -888,6 +889,7 @@ editor_mappanel_wrapper = function (editor) { editor.constructor.prototype.copyFromPos = function (pos) { + editor.uivalues.tileSize = [1,1]; var fields = Object.keys(editor.file.comment._data.floors._data.loc._data); pos = pos || editor.pos; var x0 = pos.x, y0 = pos.y, x1 = pos.x1, y1 = pos.y1; @@ -910,6 +912,7 @@ editor_mappanel_wrapper = function (editor) { } editor.constructor.prototype.pasteToPos = function (info, pos) { + editor.uivalues.tileSize = [1,1]; if (info == null) return; var fields = Object.keys(editor.file.comment._data.floors._data.loc._data); pos = pos || editor.pos; @@ -931,6 +934,7 @@ editor_mappanel_wrapper = function (editor) { } editor.constructor.prototype.movePos = function (startPos, endPos, callback) { + editor.uivalues.tileSize = [1,1]; if (!startPos || !endPos) return; if (startPos.x == endPos.x && startPos.y == endPos.y) return; var copyed = editor.copyFromPos(startPos); @@ -949,6 +953,7 @@ editor_mappanel_wrapper = function (editor) { } editor.constructor.prototype.exchangePos = function (startPos, endPos, callback) { + editor.uivalues.tileSize = [1,1]; if (!startPos || !endPos) return; if (startPos.x == endPos.x && startPos.y == endPos.y) return; var startInfo = editor.copyFromPos(startPos); diff --git a/_server/editor_ui.js b/_server/editor_ui.js index d42c9b42..65bfcbaf 100644 --- a/_server/editor_ui.js +++ b/_server/editor_ui.js @@ -134,6 +134,7 @@ editor_ui_wrapper = function (editor) { * 绑定快捷键 */ editor.uifunctions.body_shortcut = function (e) { + editor.uivalues.tileSize = [1,1]; // UI预览 & 地图选点 if (editor.uievent && editor.uievent.isOpen) {