This commit is contained in:
oc 2018-11-21 22:19:36 +08:00
parent 259843692b
commit 190b2d586b
3 changed files with 13 additions and 9 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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);