diff --git a/libs/actions.js b/libs/actions.js index 7d8ba631..4d829c8e 100644 --- a/libs/actions.js +++ b/libs/actions.js @@ -930,6 +930,11 @@ actions.prototype.clickViewMaps = function (x,y) { core.ui.drawMaps(index, cx, cy); return; } + if (x==0 && y==12) { + core.status.event.data.paint = !core.status.event.data.paint; + core.ui.drawMaps(index, cx, cy); + return; + } if (x==12 && y==0) { core.status.event.data.all = !core.status.event.data.all; core.ui.drawMaps(index, cx, cy); diff --git a/libs/ui.js b/libs/ui.js index bccea85f..135c1841 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1571,6 +1571,13 @@ ui.prototype.drawMaps = function (index, x, y) { core.fillText('ui', "上移地图 [W]", 208, 38, '#FFD700', '20px Arial'); core.fillText('ui', "下移地图 [S]", 208, 390); + core.strokeRect('ui', 2, 2, 28, 28); + core.fillText('ui', 'V', 16, 24); + core.strokeRect('ui', 2, 416-30, 28, 28); + core.fillText('ui', 'M', 16, 408); + core.strokeRect('ui', 416-30, 2, 28, 28); + core.fillText('ui', 'Z', 400, 24); + var top = 150; core.fillText('ui', "左", 32, top); core.fillText('ui', "移", 32, top+32); @@ -1588,6 +1595,7 @@ ui.prototype.drawMaps = function (index, x, y) { core.fillText('ui', "退出 [ESC / ENTER]", 208, 208+8); core.fillText('ui', "[X] 可查看怪物手册", 285, 208+40, null, '13px Arial'); + return; } diff --git a/main.js b/main.js index 45ccd438..85c7114b 100644 --- a/main.js +++ b/main.js @@ -420,15 +420,6 @@ main.statusBar.image.fly.onclick = function () { return; } - // 浏览地图时 - if (main.core.isPlaying() && (core.status.event||{}).id=='viewMaps') { - if (core.isset(core.status.event.data)) { - core.status.event.data.paint = !core.status.event.data.paint; - core.ui.drawMaps(core.status.event.data); - } - return; - } - if (main.core.isPlaying()) { if (!main.core.flags.equipboxButton) { main.core.useFly(true);