|
|
|
|
@ -97,10 +97,12 @@ export function FreeFlow(){ |
|
|
|
|
setSummary(null); |
|
|
|
|
|
|
|
|
|
reset(); |
|
|
|
|
resetUser(); |
|
|
|
|
sendOsc(OSC_ADDRESS.CHOICE, 'reset'); |
|
|
|
|
sendOsc(OSC_ADDRESS.SPEECH, 'stop'); |
|
|
|
|
|
|
|
|
|
setPadInput(); |
|
|
|
|
setChoice(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function onOsc(payload){ |
|
|
|
|
@ -429,13 +431,13 @@ export function FreeFlow(){ |
|
|
|
|
} |
|
|
|
|
sendOsc(OSC_ADDRESS.SPEECH, 'stop'); |
|
|
|
|
|
|
|
|
|
if(cue.numpad_type=='password'){ |
|
|
|
|
if(cue.numpad_type=='choice'){ |
|
|
|
|
if(!choice){ |
|
|
|
|
console.log('set default choice to save'); |
|
|
|
|
setChoice('save'); |
|
|
|
|
sendOsc(OSC_ADDRESS.CHOICE, 'save'); // Send OSC save choice message |
|
|
|
|
}else{ |
|
|
|
|
sendOsc(OSC_ADDRESS.CHOICE, choice); // Send OSC save choice message |
|
|
|
|
// sendOsc(OSC_ADDRESS.CHOICE, choice); // Send OSC save choice message |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -498,6 +500,7 @@ export function FreeFlow(){ |
|
|
|
|
case NUMPAD_TYPE.CHOICE: |
|
|
|
|
next=cue.branch[padInput.toString()].nextcue; |
|
|
|
|
setChoice(()=>cue.branch[padInput.toString()].description); // Set choice for user input |
|
|
|
|
sendOsc(OSC_ADDRESS.CHOICE, cue.branch[padInput.toString()].description); |
|
|
|
|
break; |
|
|
|
|
case NUMPAD_TYPE.PASSWORD: |
|
|
|
|
setPassword(padInput); |
|
|
|
|
@ -766,7 +769,7 @@ export function FreeFlow(){ |
|
|
|
|
<span className='font-bold'>PC {data?.id}</span> |
|
|
|
|
<span className="">{localIP || '...'}</span> |
|
|
|
|
</div> |
|
|
|
|
<DebugControl/> |
|
|
|
|
<DebugControl onReset={resetData}/> |
|
|
|
|
<div className="w-full p-2 grid grid-cols-4 gap-2 items-stretch justify-center *:max-h-[5rem]"> |
|
|
|
|
<div className="bg-gray-100 text-4xl font-bold mb-4 flex justify-center items-center"> |
|
|
|
|
{refCurrentCue.current?.name} |
|
|
|
|
|