增加显示融合网格选项
This commit is contained in:
parent
ee96b91aef
commit
1862b885b3
|
@ -78,6 +78,9 @@
|
||||||
<span>{{ $t("disable blending params") }}</span>
|
<span>{{ $t("disable blending params") }}</span>
|
||||||
<q-checkbox style="justify-content: flex-start"
|
<q-checkbox style="justify-content: flex-start"
|
||||||
v-model="disable_blending_params" @click="send_disable_blending_params" />
|
v-model="disable_blending_params" @click="send_disable_blending_params" />
|
||||||
|
<span>{{ $t("show blending grids") }}</span>
|
||||||
|
<q-checkbox style="justify-content: flex-start"
|
||||||
|
v-model="show_blending_grids" @click="send_show_blending_grids" />
|
||||||
<div class="q-space" data-v-39efcd1f=""></div>
|
<div class="q-space" data-v-39efcd1f=""></div>
|
||||||
<q-btn color="white" @click="resetall" text-color="black" :label="$t('resetall config')" />
|
<q-btn color="white" @click="resetall" text-color="black" :label="$t('resetall config')" />
|
||||||
<div class="q-space" data-v-39efcd1f=""></div>
|
<div class="q-space" data-v-39efcd1f=""></div>
|
||||||
|
@ -150,6 +153,9 @@
|
||||||
const send_disable_blending_params = () => {
|
const send_disable_blending_params = () => {
|
||||||
set?.SetBlendingOption(1, disable_blending_params.value ? 1 : 0);
|
set?.SetBlendingOption(1, disable_blending_params.value ? 1 : 0);
|
||||||
};
|
};
|
||||||
|
const send_show_blending_grids = () => {
|
||||||
|
set?.SetBlendingOption(1000, show_blending_grids.value ? 1 : 0);
|
||||||
|
};
|
||||||
const resetall=()=>{
|
const resetall=()=>{
|
||||||
set?.ResetBlendingConfig()
|
set?.ResetBlendingConfig()
|
||||||
}
|
}
|
||||||
|
@ -159,6 +165,7 @@
|
||||||
optionsstr.value = "FusionLocale";
|
optionsstr.value = "FusionLocale";
|
||||||
const hide_desktop_value = ref(true);
|
const hide_desktop_value = ref(true);
|
||||||
const disable_blending_params = ref(false);
|
const disable_blending_params = ref(false);
|
||||||
|
const show_blending_grids = ref(false);
|
||||||
const options = computed({
|
const options = computed({
|
||||||
get() {
|
get() {
|
||||||
return optionsstr.value;
|
return optionsstr.value;
|
||||||
|
@ -240,18 +247,18 @@
|
||||||
set?.GetBlendingConfig("").then((res) => {
|
set?.GetBlendingConfig("").then((res) => {
|
||||||
let tmp = JSON.parse(res ? res.config : "");
|
let tmp = JSON.parse(res ? res.config : "");
|
||||||
//console.log(tmp.options[0][1])
|
//console.log(tmp.options[0][1])
|
||||||
let local_options = [ [ref(0), hide_desktop_value], [ref(1), disable_blending_params] ];
|
let local_options = [ [ref(0), hide_desktop_value], [ref(1), disable_blending_params], [ref(1000), show_blending_grids] ];
|
||||||
let k:any;
|
let k:any;
|
||||||
for(k in local_options) {
|
for(k in local_options) {
|
||||||
let local_opt = local_options[k];
|
let local_opt = local_options[k];
|
||||||
let ii:any;
|
let ii:any;
|
||||||
for(ii in tmp.options){
|
for(ii in tmp.options){
|
||||||
let opt = tmp.options[ii];
|
let opt = tmp.options[ii];
|
||||||
if (2 == opt.length && local_opt[0].value == opt[0]){
|
if (2 == opt.length && local_opt[0].value == opt[0]){
|
||||||
local_opt[1].value = (opt[1] == 0 ? false : true);
|
local_opt[1].value = (opt[1] == 0 ? false : true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
@ -261,6 +268,8 @@
|
||||||
hide_desktop_value,
|
hide_desktop_value,
|
||||||
send_disable_blending_params,
|
send_disable_blending_params,
|
||||||
disable_blending_params,
|
disable_blending_params,
|
||||||
|
send_show_blending_grids,
|
||||||
|
show_blending_grids,
|
||||||
clear,
|
clear,
|
||||||
show_dialog,
|
show_dialog,
|
||||||
options,
|
options,
|
||||||
|
|
|
@ -427,4 +427,5 @@ export default {
|
||||||
"Whether to hide the desktop":"Whether to hide the desktop",
|
"Whether to hide the desktop":"Whether to hide the desktop",
|
||||||
"resetall config":"resetall config",
|
"resetall config":"resetall config",
|
||||||
"disable blending params":"Dsable blending params",
|
"disable blending params":"Dsable blending params",
|
||||||
|
"show blending grids":"show grids",
|
||||||
};
|
};
|
||||||
|
|
|
@ -696,4 +696,5 @@ export default {
|
||||||
"Whether to hide the desktop":"是否隐藏桌面",
|
"Whether to hide the desktop":"是否隐藏桌面",
|
||||||
"resetall config":"重置所有配置",
|
"resetall config":"重置所有配置",
|
||||||
"disable blending params":"禁用融合参数",
|
"disable blending params":"禁用融合参数",
|
||||||
|
"show blending grids":"显示网格",
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue