mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-03 18:24:30 +08:00
优化宝石血瓶显伤,修复resize
This commit is contained in:
1 parent
427242c430
commit
dede46666f
7 files changed
+76
-64
No files matched your search
@@ -3,7 +3,7 @@ import { ref, watch } from 'vue';
|
||||
/**
|
||||
* 打开和关闭ui时是否展示动画
|
||||
*/
|
||||
export const transition = ref(true);
|
||||
export const transition = ref(false);
|
||||
|
||||
/**
|
||||
* 道具详细信息
|
||||
@@ -44,13 +44,14 @@ watch(autoScale, n => {
|
||||
* 重置设置信息,从localStorage读取即可
|
||||
*/
|
||||
function reset() {
|
||||
transition.value = core.getLocalStorage('transition');
|
||||
autoScale.value = core.getLocalStorage('autoScale');
|
||||
transition.value = core.getLocalStorage('transition') ? true : false;
|
||||
core.plugin.transition.value = transition.value;
|
||||
autoScale.value = core.getLocalStorage('autoScale') ? true : false;
|
||||
}
|
||||
|
||||
function resetFlag() {
|
||||
itemDetail.value = flags.itemDetail;
|
||||
autoSkill.value = flags.autoSkill;
|
||||
itemDetail.value = flags.itemDetail ? true : false;
|
||||
autoSkill.value = flags.autoSkill ? true : false;
|
||||
}
|
||||
|
||||
export default function init() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { has } from '../utils';
|
||||
|
||||
export default function init() {
|
||||
return { splitArea };
|
||||
return { splitArea, getMapData };
|
||||
}
|
||||
|
||||
type BFSFromString = `${FloorIds},${number},${number},${Dir}`;
|
||||
@@ -23,8 +23,6 @@ const arrow: Partial<Record<AllIds, Dir>> = {
|
||||
|
||||
export function splitArea() {}
|
||||
|
||||
export function getMapData(floorId: FloorIds) {}
|
||||
|
||||
export function getMapDrawData(floorId: FloorIds) {}
|
||||
|
||||
/**
|
||||
@@ -32,7 +30,10 @@ export function getMapDrawData(floorId: FloorIds) {}
|
||||
* @param floorId 中心楼层id
|
||||
* @param noCache 是否不使用缓存
|
||||
*/
|
||||
function bfs(floorId: FloorIds, noCache: boolean = false): MapBFSResult {
|
||||
export function getMapData(
|
||||
floorId: FloorIds,
|
||||
noCache: boolean = false
|
||||
): MapBFSResult {
|
||||
if (has(bfsCache[floorId]) && !noCache) return bfsCache[floorId]!;
|
||||
|
||||
const queue = [floorId];
|
||||
|
||||
Reference in new issue
Block a user