From 1e7bbac498b9610bc888c4cd348709c96505f74a Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sun, 31 May 2020 21:59:40 +0800 Subject: [PATCH] Copy floorId --- _server/editor_ui.js | 5 +++++ editor-mobile.html | 1 + editor.html | 1 + 3 files changed, 7 insertions(+) diff --git a/_server/editor_ui.js b/_server/editor_ui.js index 61961c3a..d0f87779 100644 --- a/_server/editor_ui.js +++ b/_server/editor_ui.js @@ -526,6 +526,11 @@ editor_ui_wrapper = function (editor) { node.onclick = uievent.triggerBigmap; continue; } + if (ii == 5) { + node.onclick = function () { + alert(core.copy(uievent.values.floorId) ? ('楼层ID '+ui.values.floorId+' 已成功复制到剪切板') : '无法复制楼层ID'); + } + } (function (x, y) { var move = function () { uievent.move(x, y); diff --git a/editor-mobile.html b/editor-mobile.html index d063a74b..c65c0fa7 100644 --- a/editor-mobile.html +++ b/editor-mobile.html @@ -416,6 +416,7 @@ + diff --git a/editor.html b/editor.html index f7db0cdd..df6f4682 100644 --- a/editor.html +++ b/editor.html @@ -398,6 +398,7 @@ +