feat: 苍蓝之殿左下区域

This commit is contained in:
AncTe committed 2024-05-01 18:00:27 +08:00
1 parent 23375f03f1
commit cb72e53c3d
38 files changed
+1358 -138

No files matched your search

+12
View File
@@ -105,6 +105,13 @@ function touchmove(e: TouchEvent) {
lastDis = dis;
}
function afterBattle() {
requestAnimationFrame(() => {
drawer.drawedThumbnail = {};
drawer.drawMap();
});
}
onMounted(() => {
const width = props.width ?? 300;
const height = props.height ?? 300;
@@ -119,9 +126,13 @@ onMounted(() => {
drawer.noBorder = props.noBorder ?? false;
drawer.showInfo = props.showInfo ?? false;
if (props.autoLocate) {
drawer.locateMap(drawer.nowFloor);
}
drawer.drawMap();
hook.on('afterChangeFloor', onChange);
hook.on('afterBattle', afterBattle);
if (props.action) {
useDrag(
@@ -154,6 +165,7 @@ onMounted(() => {
onUnmounted(() => {
hook.off('afterChangeFloor', onChange);
hook.off('afterBattle', afterBattle);
});
</script>