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