缩略图查看页面

This commit is contained in:
unanmed 2023-01-24 11:48:57 +08:00
parent bdd1fc5db1
commit 61a5b3072c
3 changed files with 89 additions and 2 deletions

85
public/maps/index.html Normal file
View File

@ -0,0 +1,85 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>人类:开天辟地 缩略图集</title>
<style>
html {
width: 100%;
height: 100%;
}
body {
background-color: black;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
height: 100%;
}
#map-group {
display: flex;
width: 50%;
flex-direction: column;
align-items: center;
}
#map-group span {
font-size: 32px;
}
a {
color: aqua;
text-decoration: none;
transition: color 0.2s linear;
width: 100%;
}
a:hover {
color: aquamarine;
}
img {
width: 90%;
border: 1px solid #ddd4;
border-style: dashed;
cursor: pointer;
}
.map-one {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
}
</style>
</head>
<body>
<div id="map-group">
<span>人类:开天辟地 缩略图集</span>
</div>
<script>
const list = ['草原', '洞穴', '勇气之路', '智慧小径'];
let html = '';
list.forEach(v => {
html += `
<div class="map-one">
<a href="${v}.png" class="map-a" target="_blank">${v}</a>
<img src="${v}.png" class="map-img" onclick="window.open('${v}.png')"></img>
</div>
`
});
const div = document.getElementById('map-group');
div.innerHTML += html;
</script>
</body>
</html>

View File

@ -25,7 +25,8 @@
"<br>",
"<br>",
"5. 本塔主要面向电脑端设计,",
"<span style=\"color: gold\">建议使用电脑游玩以获得更好的游戏体验</span>。但是手机依然可以游玩本塔,",
"<span style=\"color: gold\">建议使用电脑游玩以获得更好的游戏体验同时使用16:9的比例游玩更加合适",
"</span>。但是手机依然可以游玩本塔,",
"但部分操作可能不是很方便ui 也可能不是很美观,不过依然可以完整体验本游戏。",
"<br>",
"<br>",
@ -362,6 +363,7 @@
"<br>",
"<br>",
"本塔的楼层传送器是一个集<span style=\"color: gold\">分区、小地图、楼层传送、浏览地图</span>于一体的多功能楼传。",
"<a href=\"maps/index.html\" target=\"_blank\">你也可以点击这里</a>查看所有区域的缩略图。",
"下面是楼传的具体说明:",
"<br>",
"<br>",

View File

@ -176,7 +176,7 @@ export function getMapData(
while (queue.length > 0) {
const now = queue.shift()!;
const change = core.floors[now].changeFloor;
const blocks = core.getMapBlocksObj(now);
const blocks = core.getMapBlocksObj(now, noCache);
for (const [loc, ev] of Object.entries(change)) {
const target = ev.floorId as FloorIds;
if (target.startsWith(':')) continue;