This commit is contained in:
shefengchun 2023-01-31 11:31:37 +08:00
commit 069ef341ce
5 changed files with 62 additions and 8 deletions

View File

@ -1487,6 +1487,18 @@ export default class ClientConnection {
); );
} }
public async EnumBlendingScene() {
return await this.doRpc<Protocol.EnumBlendingSceneResponseEntity>(
new Protocol.EnumBlendingSceneRequestEntity()
);
}
public async ApplyBlendingScene(name: string) {
return await this.doRpc<Protocol.GetBlendingConfigResponseEntity>(
new Protocol.ApplyBlendingSceneRequestEntity(name)
);
}
public destory() { public destory() {
this.ws?.close(); this.ws?.close();
if (this.ws) { if (this.ws) {

View File

@ -104,7 +104,7 @@
<div> <div>
<div><q-btn color="white" @click="add('p')" text-color="black" label="↑" /></div> <div><q-btn color="white" @click="add('p')" text-color="black" label="↑" /></div>
<q-slider v-model="array[group].p" :min="0" @change="chang('p')" :max="2.5" :step="0.01" color="green" <q-slider v-model="array[group].p" :min="0" @change="chang('p')" :max="16" :step="0.01" color="green"
vertical reverse label-always /> vertical reverse label-always />
<div><q-btn color="white" @click="reduce('p')" text-color="black" label="↓" /></div> <div><q-btn color="white" @click="reduce('p')" text-color="black" label="↓" /></div>
<p class="text-center">p</p> <p class="text-center">p</p>
@ -112,7 +112,7 @@
<div> <div>
<div><q-btn color="white" @click="add('gamma')" text-color="black" label="↑" /></div> <div><q-btn color="white" @click="add('gamma')" text-color="black" label="↑" /></div>
<q-slider v-model="array[group].gamma" :min="0" @change="chang('gamma')" :max="2.5" :step="0.01" color="green" <q-slider v-model="array[group].gamma" :min="0" @change="chang('gamma')" :max="16" :step="0.01" color="green"
vertical reverse label-always /> vertical reverse label-always />
<div><q-btn color="white" @click="reduce('gamma')" text-color="black" label="↓" /></div> <div><q-btn color="white" @click="reduce('gamma')" text-color="black" label="↓" /></div>
<p class="text-center">gamma</p> <p class="text-center">gamma</p>

View File

@ -141,11 +141,11 @@ export default defineComponent({
setTimeout(() => { setTimeout(() => {
switch (type) { switch (type) {
case 0: case 0:
set?.SetBlendingOption("blending_grids_hide_row", RowsColumns[type] + ""); set?.SetBlendingOption("blending_grids_show_row", RowsColumns[type] + "");
break; break;
case 1: case 1:
if (!RowsColumns[1]) RowsColumns[2] = false; RowsColumns[3] = false if (!RowsColumns[1]) RowsColumns[2] = false; RowsColumns[3] = false
set?.SetBlendingOption("blending_grids_hide_column", RowsColumns[type] + ""); set?.SetBlendingOption("blending_grids_show_column", RowsColumns[type] + "");
break; break;
case 2: case 2:
@ -163,8 +163,8 @@ export default defineComponent({
model[0] = Number(server_conf.blending_grids_row) model[0] = Number(server_conf.blending_grids_row)
model[1] = Number(server_conf.blending_grids_column) model[1] = Number(server_conf.blending_grids_column)
color[0] = server_conf.blending_grids_line_color color[0] = server_conf.blending_grids_line_color
RowsColumns[0] = server_conf.blending_grids_hide_row === "false" ? false : true RowsColumns[0] = server_conf.blending_grids_show_row === "false" ? false : true
RowsColumns[1] = server_conf.blending_grids_hide_column === "false" ? false : true RowsColumns[1] = server_conf.blending_grids_show_column === "false" ? false : true
} }
use_server_config() use_server_config()

View File

@ -204,7 +204,7 @@ export default defineComponent({
const EnableBlending = ref(false); const EnableBlending = ref(false);
let optionsstr = ref(); let optionsstr = ref();
optionsstr.value = "FusionLocale"; optionsstr.value = "FusionLocale";
const hide_desktop_value_id = ref("0"); const hide_desktop_value_id = ref("debug@show_mask");
const hide_desktop_value = ref(false); const hide_desktop_value = ref(false);
const disable_blending_params_id = ref("1"); const disable_blending_params_id = ref("1");
const disable_blending_params = ref(false); const disable_blending_params = ref(false);
@ -272,7 +272,6 @@ export default defineComponent({
sessionStorage.removeItem("FourPointCalibration"); sessionStorage.removeItem("FourPointCalibration");
sessionStorage.removeItem("GridSettings"); sessionStorage.removeItem("GridSettings");
}, 500); }, 500);
getconfig();
}; };
onBeforeMount(() => { onBeforeMount(() => {

View File

@ -526,6 +526,12 @@ export namespace Protocol {
public static get kSetBlendingOption() { public static get kSetBlendingOption() {
return Commands.PROTOCOL_PREFIX + "SetBlendingOption"; return Commands.PROTOCOL_PREFIX + "SetBlendingOption";
} }
public static get kEnumBlendingScene() {
return Commands.PROTOCOL_PREFIX + "EnumBlendingScene";
}
public static get kApplyBlendingScene() {
return Commands.PROTOCOL_PREFIX + "ApplyBlendingScene";
}
static _all_commands = new Set([ static _all_commands = new Set([
Commands.kUnKnowCommand, Commands.kUnKnowCommand,
@ -659,6 +665,8 @@ export namespace Protocol {
Commands.kSetBlendingVerDensity, Commands.kSetBlendingVerDensity,
Commands.kResetBlending, Commands.kResetBlending,
Commands.kSetBlendingOption, Commands.kSetBlendingOption,
Commands.kEnumBlendingScene,
Commands.kApplyBlendingScene,
]); ]);
public static get AllCommands() { public static get AllCommands() {
return this._all_commands; return this._all_commands;
@ -3484,4 +3492,39 @@ export namespace Protocol {
id; id;
value; value;
} }
export class EnumBlendingSceneResponseEntity extends PacketEntity {
constructor() {
super();
super.flag = PacketEntity.FLAG_RESPONSE;
}
scenes = [];
}
export class EnumBlendingSceneRequestEntity extends PacketEntity {
constructor(
rpc_id = 0
) {
super();
super.command = Commands.kEnumBlendingScene;
super.flag = PacketEntity.FLAG_REQUEST;
super.rpc_id = rpc_id;
}
}
export class ApplyBlendingSceneRequestEntity extends PacketEntity {
constructor(
name: string,
rpc_id = 0
) {
super();
super.command = Commands.kApplyBlendingScene;
super.flag = PacketEntity.FLAG_REQUEST;
super.rpc_id = rpc_id;
this.name = name ?? "";
}
name;
}
} }