解决地图清晰度并增加事件层阴影

This commit is contained in:
strawberry 2025-10-14 14:28:15 +08:00
parent aaad507cc3
commit 7e2281fbb7
5 changed files with 13 additions and 5 deletions

View File

@ -196,6 +196,7 @@ control.prototype._animationFrame_globalAnimate = function (timestamp) {
core.status.globalAnimateStatus++;
if (core.status.floorId) {
// Global Animate
core.status.globalAnimateObjs.forEach(function (block) {
core.drawBlock(block, core.status.globalAnimateStatus);
});

View File

@ -1292,8 +1292,10 @@ maps.prototype.drawEvents = function (floorId, blocks, config) {
core.clearMap('event');
core.clearMap('event2');
}
var toDrawCtx = core.getContextByName(config.ctx);
if (!toDrawCtx) return;
var cacheCtx = toDrawCtx;
if (config.onMap) {
cacheCtx = core.bigmap.cacheCanvas;
@ -1784,8 +1786,13 @@ maps.prototype._drawThumbnail_drawTempCanvas = function (floorId, blocks, option
maps.prototype._drawThumbnail_realDrawTempCanvas = function (floorId, blocks, options) {
// 缩略图:背景
this.drawBg(floorId, options);
options.ctx.shadowColor = "black";
options.ctx.shadowBlur = 5;
options.ctx.shadowOffsetX = 5;
options.ctx.shadowOffsetY = 5;
// 缩略图:事件
this.drawEvents(floorId, blocks, options);
options.ctx.shadowColor = "transparent";
// 缩略图:勇士
if (options.heroLoc) {
options.heroIcon = options.heroIcon || core.status.hero.image || 'hero.png';

View File

@ -80,7 +80,7 @@ main.floors.yiqu3=
[140,140,140204,140206,140206, 0,140206,140206,140203,140,110204,110206,110206],
[140,140,140199,170255,170252, 91,170254,170255,140197,140,140199,130192,130193],
[140206,140206,140207,170263,170260,203,170262,170263,140205,140206,140207,130200,130201],
[130193,130193,130194,71835,170268, 0,170270,90648,130192,130193,130194, 31, 0],
[130193,130193,130194,170271,170268, 0,170270,90648,130192,130193,130194, 31, 0],
[130201,130201,130202,71843,110122,205,110122,90649,130200,130201,130202, 0, 21],
[140101, 0,202, 0,421, 0,421, 0, 31, 0, 82, 21, 0],
[140109,201,201021,220013, 81,220013,220013,201021, 81,220013,220013,220013,220013],
@ -98,7 +98,7 @@ main.floors.yiqu3=
[ 0, 0, 0, 0, 0,140206,110319, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0,170253,110327, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0,110335, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0,110114, 0,110114, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0,71835,110114, 0,110114, 0, 0, 0, 0, 0, 0],
[140093, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,201021,71784],

View File

@ -2,7 +2,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
{
"init": function () {
this._afterLoadResources = function () {
core.canvas.event.canvas.style.filter = "drop-shadow(5px 5px 5px black)"
core.canvas.event.canvas.style.filter = 'drop-shadow(5px 5px 5px black)';
core.setTaskFloor = {}
core.mitTaskFloor = {}
core.tarTaskFloor = {}

View File

@ -544,9 +544,9 @@ p#name {
}
/* 注释下面这三行以开启抗锯齿 */
/* .anti-aliasing {
.anti-aliasing {
image-rendering: pixelated;
} */
}
.warning {
transition: left cubic-bezier(0, 0.9, 1, 0.1) 2.5s;