diff --git a/public/_server/table/data.comment.js b/public/_server/table/data.comment.js index 55ab4ea..aacfa64 100644 --- a/public/_server/table/data.comment.js +++ b/public/_server/table/data.comment.js @@ -666,7 +666,13 @@ var data_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = { "_type": "checkbox", "_docs": "虚化前景层", "_data": "是否虚化前景层;如果此项开启,则在游戏中事件层有东西(如宝石等)时虚化前景层。" - } + }, + "autoScale": { + "_leaf": true, + "_type": "checkbox", + "_docs": "自动缩放最大化", + "_data": "是否自动缩放最大化,关闭后不再最大化" + }, } } } diff --git a/public/project/data.js b/public/project/data.js index 65218f2..719c378 100644 --- a/public/project/data.js +++ b/public/project/data.js @@ -676,6 +676,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "disableShopOnDamage": false, "blurFg": true, "extendToolbar": true, - "enableEnemyPoint": null + "enableEnemyPoint": null, + "autoScale": true } } \ No newline at end of file diff --git a/src/data/settings.json b/src/data/settings.json index c087428..7e1237b 100644 --- a/src/data/settings.json +++ b/src/data/settings.json @@ -2,7 +2,8 @@ "transition": { "text": "界面动画", "desc": [ - "是否展示当一个ui界面,如怪物手册等的打开与关闭时的动画。当此项开启时,所有界面被打开或关闭时都会展示动画,否则会直接展示出来" + "是否展示当一个ui界面,如怪物手册等的打开与关闭时的动画。当此项开启时,", + "所有界面被打开或关闭时都会展示动画,否则会直接展示出来" ] }, "itemDetail": { @@ -14,5 +15,9 @@ "desc": [ "开启后,打怪物的时候会自动选择伤害最低的技能。同时显伤也会显示此状态下的伤害。" ] + }, + "autoScale": { + "text": "自动放缩", + "desc": ["开启后,每次进入游戏时会自动缩放游戏画面至合适值。"] } } diff --git a/src/plugin/settings.ts b/src/plugin/settings.ts index 1e1484d..a029256 100644 --- a/src/plugin/settings.ts +++ b/src/plugin/settings.ts @@ -15,6 +15,11 @@ export const itemDetail = ref(true); */ export const autoSkill = ref(true); +/** + * 自动放缩 + */ +export const autoScale = ref(true); + watch(transition, n => { core.plugin.transition.value = n; core.setLocalStorage('transition', n); @@ -31,11 +36,16 @@ watch(autoSkill, n => { core.status.route.push(`set:autoSkill:${n}`); }); +watch(autoScale, n => { + core.setLocalStorage('autoScale', n); +}); + /** * 重置设置信息,从localStorage读取即可 */ function reset() { transition.value = core.getLocalStorage('transition'); + autoScale.value = core.getLocalStorage('autoScale'); } function resetFlag() { diff --git a/src/ui/settings.vue b/src/ui/settings.vue index ae27458..5823a2a 100644 --- a/src/ui/settings.vue +++ b/src/ui/settings.vue @@ -26,6 +26,14 @@ autoSkill ? 'ON' : 'OFF' }} + 自动放缩:   {{ + autoScale ? 'ON' : 'OFF' + }} 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; } } diff --git a/src/ui/skillTree.vue b/src/ui/skillTree.vue new file mode 100644 index 0000000..8d4490f --- /dev/null +++ b/src/ui/skillTree.vue @@ -0,0 +1,14 @@ + + + + +