mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 12:49:25 +08:00
修复完成todo引起的bug
This commit is contained in:
parent
1854389966
commit
93fad2f637
19
src/App2.vue
19
src/App2.vue
@ -3,9 +3,9 @@
|
||||
<Start v-if="startOpened"></Start>
|
||||
<StatusBar v-if="showStatusBar"></StatusBar>
|
||||
<MarkedEnemy v-if="showMarkedEnemy && showStatusBar"></MarkedEnemy>
|
||||
<Studied
|
||||
<!-- <Studied
|
||||
v-if="showStudiedSkill && showStatusBar && showStudied"
|
||||
></Studied>
|
||||
></Studied> -->
|
||||
<Fixed v-if="showStatusBar && useFixed"></Fixed>
|
||||
<Chapter v-if="chapterShowed" :chapter="chapterContent"></Chapter>
|
||||
<CompleteAchievement
|
||||
@ -17,22 +17,23 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
import {
|
||||
showStatusBar,
|
||||
showStudiedSkill,
|
||||
startOpened
|
||||
} from './plugin/uiController';
|
||||
import { showStatusBar, startOpened } from './plugin/uiController';
|
||||
import { chapterContent, chapterShowed } from './plugin/ui/chapter';
|
||||
import { showMarkedEnemy } from './plugin/mark';
|
||||
import { showStudied, useFixed } from './plugin/settings';
|
||||
import { showComplete, completeAchi } from './plugin/ui/achievement';
|
||||
import MarkedEnemy from './ui/markedEnemy.vue';
|
||||
import StatusBar from './ui/statusBar.vue';
|
||||
import Chapter from './ui/chapter.vue';
|
||||
import Studied from './ui/studied.vue';
|
||||
import Fixed from './ui/fixed.vue';
|
||||
import Start from './ui/start.vue';
|
||||
import CompleteAchievement from './ui/completeAchievement.vue';
|
||||
import { mainSetting } from './core/main/setting';
|
||||
|
||||
const useFixed = ref(true);
|
||||
|
||||
mainSetting.on('valueChange', (key, n, o) => {
|
||||
if (key === 'action.fixed') useFixed.value = n as boolean;
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
@ -292,8 +292,6 @@ function handleScreenSetting<T extends number | boolean>(
|
||||
n: T,
|
||||
o: T
|
||||
) {
|
||||
if (n === o) return;
|
||||
|
||||
if (key === 'fullscreen') {
|
||||
// 全屏
|
||||
triggerFullscreen(n as boolean);
|
||||
@ -336,8 +334,6 @@ function handleActionSetting<T extends number | boolean>(
|
||||
n: T,
|
||||
o: T
|
||||
) {
|
||||
if (n === o) return;
|
||||
|
||||
if (key === 'autoSkill') {
|
||||
// 自动切换技能
|
||||
flags.autoSkill = n;
|
||||
@ -354,8 +350,6 @@ function handleUtilsSetting<T extends number | boolean>(
|
||||
n: T,
|
||||
o: T
|
||||
) {
|
||||
if (n === o) return;
|
||||
|
||||
if (key === 'betterLoad') {
|
||||
// 加载优化
|
||||
core.setLocalStorage('betterLoad', n);
|
||||
|
@ -1,8 +1,6 @@
|
||||
/**
|
||||
* 获取勇士在某一点的属性
|
||||
* @param name 要获取的勇士属性
|
||||
* @param x 勇士所在横坐标
|
||||
* @param y 勇士所在纵坐标
|
||||
* @param floorId 勇士所在楼层
|
||||
*/
|
||||
export function getHeroStatusOn(name: 'all', floorId?: FloorIds): HeroStatus;
|
||||
@ -26,8 +24,6 @@ export function getHeroStatusOn(
|
||||
* 获取一定状态下的勇士在某一点的属性
|
||||
* @param status 勇士的状态
|
||||
* @param name 要获取的勇士属性
|
||||
* @param x 勇士所在横坐标
|
||||
* @param y 勇士所在纵坐标
|
||||
* @param floorId 勇士所在楼层
|
||||
*/
|
||||
export function getHeroStatusOf(
|
||||
|
@ -178,8 +178,9 @@ watch(status, update);
|
||||
* 更新显示内容
|
||||
*/
|
||||
function update() {
|
||||
if (!core?.plugin?.hero?.getHeroStatusOn) return;
|
||||
toShow.forEach(v => {
|
||||
hero[v] = core.plugin.getHeroStatusOn(v);
|
||||
hero[v] = core.plugin.hero.getHeroStatusOn(v);
|
||||
});
|
||||
keys[0] = core.itemCount('yellowKey');
|
||||
keys[1] = core.itemCount('blueKey');
|
||||
|
Loading…
Reference in New Issue
Block a user