|
|
|
|
@ -622,17 +622,17 @@ export function FlowMoty(){ |
|
|
|
|
const delay=order*2000; |
|
|
|
|
console.log('export delay time:', delay); |
|
|
|
|
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
// setTimeout(()=>{ |
|
|
|
|
if(isTest) { |
|
|
|
|
sendOsc(OSC_ADDRESS.EXPORT, `${getUploadFolder()}#${getDataId()}#${summary||''}#${getFileId(padInput)}#${choice||''}#generated`); // Send OSC export message |
|
|
|
|
sendOsc(OSC_ADDRESS.EXPORT, `${getFileId(padInput)}#generated`); // Send OSC export message |
|
|
|
|
}else{ |
|
|
|
|
sendOsc(OSC_ADDRESS.EXPORT, `${getUploadFolder()}#${getDataId()}#${summary||''}#${getFileId(padInput)}#${choice||''}#${default_image?'default':'generated'}`); // Send OSC export message |
|
|
|
|
sendOsc(OSC_ADDRESS.EXPORT, `${getFileId(padInput)}#${default_image?'default':'generated'}`); // Send OSC export message |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, delay); // random delay between 0.5s to 5.5s |
|
|
|
|
// }, delay); // random delay between 0.5s to 5.5s |
|
|
|
|
|
|
|
|
|
writeSheet(); |
|
|
|
|
// writeSheet(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function startChatTimer(){ |
|
|
|
|
@ -703,19 +703,10 @@ export function FlowMoty(){ |
|
|
|
|
let next=cue.nextcue; |
|
|
|
|
switch(cue.numpad_type){ |
|
|
|
|
case NUMPAD_TYPE.USERID: |
|
|
|
|
case NUMPAD_TYPE.PHONE: |
|
|
|
|
console.log('set id', padInput); |
|
|
|
|
setUserId(()=>padInput); |
|
|
|
|
break; |
|
|
|
|
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); |
|
|
|
|
// sendOsc(OSC_ADDRESS.PASSWORD, mess); // Send OSC password message |
|
|
|
|
// sendOsc(OSC_ADDRESS.CHOICE, choice); // Send OSC save choice message |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(next){ |
|
|
|
|
@ -937,7 +928,7 @@ export function FlowMoty(){ |
|
|
|
|
startChatTimer(); |
|
|
|
|
break; |
|
|
|
|
case ChatStatus.Processing: |
|
|
|
|
text = '記憶讀取中'; |
|
|
|
|
text = '美好製作中'; |
|
|
|
|
break; |
|
|
|
|
case ChatStatus.Message: |
|
|
|
|
text = '請留言'; |
|
|
|
|
@ -1016,6 +1007,8 @@ export function FlowMoty(){ |
|
|
|
|
setLocalIP(ip); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
sendOsc(OSC_ADDRESS.STATUS, 'reset'); |
|
|
|
|
|
|
|
|
|
},[]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|