完善技能树ui

This commit is contained in:
unanmed 2022-12-31 22:45:32 +08:00
parent 394cda8a3c
commit 25b87669ce
2 changed files with 40 additions and 8 deletions

View File

@ -2,8 +2,34 @@ export default function init() {
return { splitArea };
}
function splitArea() {}
interface MapBFSResult {
maps: FloorIds[];
link: Record<
`${FloorIds}_${number}_${number}_${Dir}`,
`${FloorIds}_${number}_${number}`
>;
}
function getMapData(floorId: FloorIds) {}
const bfsCache: Partial<Record<FloorIds, MapBFSResult>> = {};
function bfs(floorId: FloorIds) {}
export function splitArea() {}
export function getMapData(floorId: FloorIds) {}
export function getMapDrawData(floorId: FloorIds) {}
/**
* 广
* @param floorId id
* @param noCache 使
*/
function bfs(floorId: FloorIds, noCache: boolean = false) {
if (bfsCache[floorId] && !noCache) return bfsCache[floorId];
const queue = [floorId];
const used: Partial<Record<FloorIds, boolean>> = {};
while (queue.length > 0) {
const now = queue.shift()!;
}
}

View File

@ -30,6 +30,8 @@
id="divider-vertical"
></a-divider>
<div id="skill-upgrade-info">
<span id="skill-level">当前等级{{ level }}</span>
<a-divider dashed class="upgrade-divider"></a-divider>
<span
id="skill-consume"
:style="{ color: consume <= mdef ? '#fff' : '#f44' }"
@ -370,8 +372,8 @@ function selectChapter(delta: number) {
}
#skill-canvas {
height: 40vh;
width: 40vh;
height: 35vh;
width: 35vh;
}
#front-scroll {
@ -379,15 +381,19 @@ function selectChapter(delta: number) {
}
#skill-consume {
font-size: 2.4vh;
font-size: 2.2vh;
}
#front-scroll {
font-size: 2.4vh;
font-size: 2.2vh;
}
#skill-chapter {
font-size: 2.4vh;
font-size: 2.2vh;
}
#skill-level {
font-size: 2.2vh;
}
}
</style>