清除最近使用图块
This commit is contained in:
1 parent
9c04714f9a
commit
0554ac2d71
6 files changed
+13
-7
No files matched your search
@@ -52,6 +52,7 @@ function editor() {
|
||||
left1 : document.getElementById('left1'),
|
||||
editModeSelect :document.getElementById('editModeSelect'),
|
||||
mid2 : document.getElementById('mid2'),
|
||||
clearLastUsedBtn: document.getElementById('clearLastUsedBtn'),
|
||||
lastUsedDiv: document.getElementById('lastUsedDiv'),
|
||||
lastUsed: document.getElementById('lastUsed'),
|
||||
lastUsedCtx: document.getElementById('lastUsed').getContext('2d'),
|
||||
|
||||
@@ -35,6 +35,7 @@ editor_listen_wrapper = function (editor) {
|
||||
editor.dom.clearLoc.onmousedown = editor.uifunctions.clearLoc_click
|
||||
|
||||
editor.dom.lastUsed.onmousedown = editor.uifunctions.lastUsed_click;
|
||||
editor.dom.clearLastUsedBtn.onclick = editor.uifunctions.clearLastUsedBtn_click;
|
||||
editor.dom.lockMode.onchange = editor.uifunctions.lockMode_onchange;
|
||||
|
||||
editor.dom.brushMod.onchange = editor.uifunctions.brushMod_onchange
|
||||
|
||||
@@ -742,7 +742,13 @@ editor_mappanel_wrapper = function (editor) {
|
||||
return;
|
||||
}
|
||||
|
||||
editor.uifunctions.clearLastUsedBtn_click = function () {
|
||||
if (editor.isMobile) return;
|
||||
|
||||
editor.uivalues.lastUsed = [];
|
||||
editor.config.set('lastUsed', []);
|
||||
editor.updateLastUsedMap();
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in new issue
Block a user