mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-10 15:34:30 +08:00
增加设置
This commit is contained in:
1 parent
c39d073ff8
commit
f683a25895
6 files changed
+55
-4
No files matched your search
+16
-1
@@ -26,6 +26,14 @@
|
||||
autoSkill ? 'ON' : 'OFF'
|
||||
}}</span
|
||||
>
|
||||
<span
|
||||
class="selectable setting-item"
|
||||
:selected="selected === 'autoScale'"
|
||||
@click="click('autoScale')"
|
||||
>自动放缩: {{
|
||||
autoScale ? 'ON' : 'OFF'
|
||||
}}</span
|
||||
>
|
||||
</div></template
|
||||
>
|
||||
<template #right><span v-html="descText"></span></template
|
||||
@@ -34,7 +42,12 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref } from 'vue';
|
||||
import { transition, itemDetail, autoSkill } from '../plugin/settings';
|
||||
import {
|
||||
transition,
|
||||
itemDetail,
|
||||
autoSkill,
|
||||
autoScale
|
||||
} from '../plugin/settings';
|
||||
import settingInfo from '../data/settings.json';
|
||||
import { has } from '../plugin/utils';
|
||||
import Column from '../components/colomn.vue';
|
||||
@@ -72,6 +85,8 @@ function click(id: keyof Settings) {
|
||||
itemDetail.value = !itemDetail.value;
|
||||
} else if (id === 'autoSkill') {
|
||||
autoSkill.value = !autoSkill.value;
|
||||
} else if (id === 'autoScale') {
|
||||
autoScale.value = !autoScale.value;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div id="skill-tree"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue';
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
#skill-tree {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user