main
reng 3 months ago
parent b0922cf596
commit e30a27e8b2
  1. 13
      public/cuelist.json
  2. 4
      src-tauri/tauri.conf.json
  3. 9
      src/App.jsx

@ -6,7 +6,8 @@
"type": "bg",
"description": "preset bg",
"audioCue": "Q0",
"clientCue":"Q1"
"clientCue":"Q1",
"reset":true
},
{
"id": 2,
@ -23,7 +24,8 @@
"audioCue": "Q3",
"clientCue":"Q2",
"duration":482,
"auto": true
"auto": true,
"reset":true
},
{
"id": 4,
@ -53,7 +55,8 @@
"clientCue":"Q4",
"duration":97,
"auto":true,
"debug":true
"debug":true,
"reset":true
},{
"id": 7,
"name": "CQ4.11",
@ -66,8 +69,8 @@
"debug":true
},
{
"id": 5,
"name": "Q5",
"id": 8,
"name": "dQ5",
"type": "bg",
"description": "debug-(END)",
"audioCue": "Q4",

@ -13,8 +13,8 @@
"windows": [
{
"title": "control-panel",
"width": 1200,
"height": 600
"width": 1560,
"height": 800
}
],
"security": {

@ -123,6 +123,11 @@ function App() {
if(props.lightCue=='fade_in_light') refLight.current.fadeIn(); // Fade in light for conversation start
if(props.lightCue=='fade_out_light') refLight.current.fadeOut(); // Fade out light for conversation end
}
if(props.reset){
sendOsc(OSC_ADDRESS.RESETCUE,'','all');
refLight.current.set(1);
}
if(props.duration){
@ -312,8 +317,8 @@ function App() {
<td className="flex flex-row justify-end gap-1 p-1">
<button onClick={()=>sendOsc(OSC_ADDRESS.STOPCUE,'',id)}>stop</button>
<button onClick={()=>sendOsc(OSC_ADDRESS.RESETCUE,'',id)}>reset</button>
{cuelist?.filter(c=>c.clientCue).map(c=>(
<button key={c.clientCue} onClick={()=>{
{cuelist?.filter(c=>c.clientCue).map((c, index)=>(
<button key={`${id}${c.clientCue}${index}`} onClick={()=>{
sendOsc(OSC_ADDRESS.PLAYCUE, c.clientCue, id);
}}>{c.clientCue}</button>
))}

Loading…
Cancel
Save