From 4bdfc276c964f0b042c17e32485c66bce74a1db6 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sat, 31 Oct 2020 12:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A5=BC=E4=BC=A0=E7=82=B9=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _server/editor.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/_server/editor.js b/_server/editor.js index 665691c9..24cad596 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -396,17 +396,21 @@ editor.prototype.drawEventBlock = function () { editor.game.doCoreFunc("fillBoldText", fg, index + 1, 32 * i + 28, 32 * j + 15, '#FF7F00', null, '14px Verdana'); } + var offset = 0; if (editor.currentFloorData.upFloor && editor.currentFloorData.upFloor.toString() == loc) { fg.textAlign = 'left'; - editor.game.doCoreFunc("fillText", fg, "🔼", 32 * i, 32 * j + 8, null, "8px Verdana"); + editor.game.doCoreFunc("fillText", fg, "🔼", 32 * i + offset, 32 * j + 8, null, "8px Verdana"); + offset += 8; } if (editor.currentFloorData.downFloor && editor.currentFloorData.downFloor.toString() == loc) { fg.textAlign = 'left'; - editor.game.doCoreFunc("fillText", fg, "🔽", 32 * i, 32 * j + 8, null, "8px Verdana"); + editor.game.doCoreFunc("fillText", fg, "🔽", 32 * i + offset, 32 * j + 8, null, "8px Verdana"); + offset += 8; } if (editor.currentFloorData.flyPoint && editor.currentFloorData.flyPoint.toString() == loc) { fg.textAlign = 'left'; - editor.game.doCoreFunc("fillText", fg, "🔃", 32 * i, 32 * j + 8, null, "8px Verdana"); + editor.game.doCoreFunc("fillText", fg, "🔃", 32 * i + offset, 32 * j + 8, null, "8px Verdana"); + offset += 8; } } }