|
|
|
@ -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_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.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){ |
|
|
|
if(props.duration){ |
|
|
|
@ -312,8 +317,8 @@ function App() { |
|
|
|
<td className="flex flex-row justify-end gap-1 p-1"> |
|
|
|
<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.STOPCUE,'',id)}>stop</button> |
|
|
|
<button onClick={()=>sendOsc(OSC_ADDRESS.RESETCUE,'',id)}>reset</button> |
|
|
|
<button onClick={()=>sendOsc(OSC_ADDRESS.RESETCUE,'',id)}>reset</button> |
|
|
|
{cuelist?.filter(c=>c.clientCue).map(c=>( |
|
|
|
{cuelist?.filter(c=>c.clientCue).map((c, index)=>( |
|
|
|
<button key={c.clientCue} onClick={()=>{ |
|
|
|
<button key={`${id}${c.clientCue}${index}`} onClick={()=>{ |
|
|
|
sendOsc(OSC_ADDRESS.PLAYCUE, c.clientCue, id); |
|
|
|
sendOsc(OSC_ADDRESS.PLAYCUE, c.clientCue, id); |
|
|
|
}}>{c.clientCue}</button> |
|
|
|
}}>{c.clientCue}</button> |
|
|
|
))} |
|
|
|
))} |
|
|
|
|