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