From d89c63008a157a0d1534356b6161a64328322c17 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sat, 27 Jun 2020 21:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=8F=E6=98=8E=E5=9C=B0?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E7=BC=A9=E7=95=A5=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/maps.js | 2 +- libs/ui.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/maps.js b/libs/maps.js index 1d698576..52ca529c 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -1302,7 +1302,7 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, toDraw) { if (centerY == null) centerY = Math.floor(height / 2); var tempCanvas = core.bigmap.tempCanvas, tempWidth = 32 * width, tempHeight = 32 * height; - core.clearMap(ctx, x, y, size, size); + // core.clearMap(ctx, x, y, size, size); if (toDraw.all) { // 绘制全景图 if (tempWidth <= tempHeight) { diff --git a/libs/ui.js b/libs/ui.js index 41321d08..8af94db7 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -2281,6 +2281,8 @@ ui.prototype.drawCenterFly = function () { var fillstyle = 'rgba(255,0,0,0.5)'; if (core.canUseItem('centerFly')) fillstyle = 'rgba(0,255,0,0.5)'; var toX = core.bigmap.width - 1 - core.getHeroLoc('x'), toY = core.bigmap.height - 1 - core.getHeroLoc('y'); + this.clearUI(); + core.fillRect('ui', 0, 0, this.PIXEL, this.PIXEL, '#000000'); core.drawThumbnail(null, null, {heroLoc: core.status.hero.loc, heroIcon: core.status.hero.image}, {ctx: 'ui', centerX: toX, centerY: toY}); var offsetX = core.clamp(toX - core.__HALF_SIZE__, 0, core.bigmap.width - core.__SIZE__), @@ -2300,6 +2302,7 @@ ui.prototype.drawMaps = function (index, x, y) { core.clearTip(); core.status.checkBlock.cache = {}; var data = this._drawMaps_buildData(index, x, y); + core.fillRect('ui', 0, 0, this.PIXEL, this.PIXEL, '#000000'); core.drawThumbnail(data.floorId, null, {damage: data.damage}, {ctx: 'ui', centerX: data.x, centerY: data.y, all: data.all}); core.clearMap('data');