diff --git a/project/plugins.js b/project/plugins.js index cfd0260..e9e5dbf 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -8120,6 +8120,22 @@ core.plugin.animate = { const mapdir = bfs.mapdir[floorId]; core.setTextAlign('ui', 'center'); let size = core.__PIXELS__ * 3 / 4; + + core.fillRoundRect('ui', 15 - 2, 15 - 2, 35 + 4, 35 + 4, 4, '#444444'); + core.strokeRoundRect('ui', 15 - 4, 15 - 4, 35 + 8, 35 + 8, 4, "#444444", 1) + core.fillText('ui', '当前', 13 + 20, 17 + 20, '#FFFFFF', this._buildFont(18, true)) + + core.fillRoundRect('ui', 15 - 2, 15 - 2 + 35 + 8 + size + 8 - 54, 35 + 4, 35 + 4, 4, '#444444'); + core.strokeRoundRect('ui', 15 - 4, 15 - 4 + 35 + 8 + size + 8 - 54, 35 + 8, 35 + 8, 4, "#444444", 1) + if (!core.status.maps[core.floorIds[page]].canFlyTo || !core.hasVisitedFloor(core.floorIds[page])) { + core.fillText('ui', '预览', 13 + 20, 17 + 20 + 35 + 8 + size + 8 - 54, '#909090', this._buildFont(18, true)) + } else { + core.fillText('ui', '传送', 13 + 20, 17 + 20 + 35 + 8 + size + 8 - 54, '#909090', this._buildFont(18, true)) + } + core.fillRoundRect('ui', 15 - 4 + size - 2 + 45, 15 - 2 + size - 4 + 45, 35 + 4, 35 + 4, 4, '#444444'); + core.strokeRoundRect('ui', 15 - 4 + size - 4 + 45, 15 - 4 + size - 4 + 45, 35 + 8, 35 + 8, 4, "#444444", 1) + core.fillText('ui', '离开', 15 - 4 + size - 4 + 45 + 22, 15 - 4 + size - 4 + 45 + 26, '#FFFFFF', this._buildFont(18, true)) + core.fillRoundRect('ui', 15 + 44 - 2, 15 - 2, size + 4 - 58, 35 + 4, 4, '#444444'); core.strokeRoundRect('ui', 15 + 44 - 4, 15 - 4, size + 8 - 58, 35 + 8, 4, "#444444", 1) if (mapdir.includes("up")) { @@ -8157,6 +8173,8 @@ core.plugin.animate = { core.fillRoundRect('ui', 60 - 2, 60 - 2, size - 58 + 4, size - 58 + 4, 4, '#444444'); core.strokeRoundRect('ui', 60 - 4, 60 - 4, size - 58 + 8, size - 58 + 8, 4, "#444444", 1) core.drawThumbnail(floorId, null, { damage: data.damage, ctx: 'ui', x: 58, y: 58, size: 0.62, all: data.all }) + if (!core.status.maps[core.floorIds[page]].canFlyTo || !core.hasVisitedFloor(core.floorIds[page])) + core.drawImage('ui', 'lock.png', 0, 0, size, size, 58, 58, size - 8, size - 8); core.fillRoundRect('ui', 15 + 44 - 2, 60 - 2 + size - 4, size + 4 - 58, 35 + 4, 4, '#444444'); core.strokeRoundRect('ui', 15 + 44 - 4, 60 - 4 + size - 4, size + 8 - 58, 35 + 8, 4, "#444444", 1)