main
reng 3 months ago
parent 385151a838
commit 410b1950d0
  1. BIN
      vite/public/assets/ai/ai-09-ai-10-bg-05.mp3
  2. BIN
      vite/public/assets/ai/sfx-03-ai-03.mp3
  3. 12
      vite/public/cuelist_demo3.json
  4. BIN
      vite/public/favicon.ico
  5. BIN
      vite/src-tauri/icons/128x128.png
  6. BIN
      vite/src-tauri/icons/128x128@2x.png
  7. BIN
      vite/src-tauri/icons/32x32.png
  8. BIN
      vite/src-tauri/icons/Square107x107Logo.png
  9. BIN
      vite/src-tauri/icons/Square142x142Logo.png
  10. BIN
      vite/src-tauri/icons/Square150x150Logo.png
  11. BIN
      vite/src-tauri/icons/Square284x284Logo.png
  12. BIN
      vite/src-tauri/icons/Square30x30Logo.png
  13. BIN
      vite/src-tauri/icons/Square310x310Logo.png
  14. BIN
      vite/src-tauri/icons/Square44x44Logo.png
  15. BIN
      vite/src-tauri/icons/Square71x71Logo.png
  16. BIN
      vite/src-tauri/icons/Square89x89Logo.png
  17. BIN
      vite/src-tauri/icons/StoreLogo.png
  18. BIN
      vite/src-tauri/icons/icon.icns
  19. BIN
      vite/src-tauri/icons/icon.ico
  20. BIN
      vite/src-tauri/icons/icon.png
  21. 16
      vite/src/pages/flow_free.jsx

@ -16,7 +16,7 @@
"type": "headphone", "type": "headphone",
"description": "Guide for drink", "description": "Guide for drink",
"auto": true, "auto": true,
"audioFile": "assets/record/record-01(小束袋).mp3", "audioFile": "assets/record/Record 01 (0905).mp3",
"nextcue": 3, "nextcue": 3,
"status":"reset" "status":"reset"
}, },
@ -26,7 +26,7 @@
"description": "Guide for phone", "description": "Guide for phone",
"type": "headphone", "type": "headphone",
"auto": true, "auto": true,
"audioFile": "assets/record/record-02.mp3", "audioFile": "assets/record/Record 02 (0905).mp3",
"nextcue":4 "nextcue":4
}, },
{ {
@ -65,10 +65,9 @@
"type": "phone", "type": "phone",
"description": "裝置啟動音效", "description": "裝置啟動音效",
"auto": true, "auto": true,
"audioFile": "assets/sfx/sfx-04.mp3", "audioFile": "assets/ai/ai-03-sfx-04.mp3",
"nextcue": 4.2, "nextcue": 4.2,
"status":"intro", "status":"intro"
"callback":"fade_out_light"
}, },
{ {
"id": 4.2, "id": 4.2,
@ -162,7 +161,8 @@
"description":"end", "description":"end",
"auto": false, "auto": false,
"audioFile": "assets/ai/ai-09-ai-10-bg-05.mp3", "audioFile": "assets/ai/ai-09-ai-10-bg-05.mp3",
"fadeout": true "fadeout": true,
"callback":"exportFile"
}, },
{ {
"id": 6, "id": 6,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 42 KiB

@ -337,6 +337,10 @@ export function FreeFlow(){
}); });
} }
if(cue.callback=='exportFile'){
exportFile();
}
// control unity // control unity
if(cue.status && cue.status!='go') { if(cue.status && cue.status!='go') {
@ -417,6 +421,14 @@ export function FreeFlow(){
setPadInput(mess); setPadInput(mess);
} }
function exportFile(){
const user_input = history.find(msg => msg.role === 'user');
const default_image=!(user_input && user_input.content.trim() !== '');
sendOsc(OSC_ADDRESS.EXPORT, `${getUploadFolder()}#${getDataId()}#${summary||''}#${getFileId(padInput)}#${choice||''}#${default_image?'default':'generated'}`); // Send OSC export message
}
useEffect(()=>{ useEffect(()=>{
@ -438,10 +450,6 @@ export function FreeFlow(){
case NUMPAD_TYPE.PASSWORD: case NUMPAD_TYPE.PASSWORD:
setPassword(()=>padInput); setPassword(()=>padInput);
// sendOsc(OSC_ADDRESS.PASSWORD, mess); // Send OSC password message // sendOsc(OSC_ADDRESS.PASSWORD, mess); // Send OSC password message
const user_input = history.find(msg => msg.role === 'user');
const default_image=!(user_input && user_input.content.trim() !== '');
sendOsc(OSC_ADDRESS.EXPORT, `${getUploadFolder()}#${getDataId()}#${summary||''}#${getFileId(padInput)}#${choice||''}#${default_image?'default':'generated'}`); // Send OSC export message
sendOsc(OSC_ADDRESS.CHOICE, choice); // Send OSC save choice message sendOsc(OSC_ADDRESS.CHOICE, choice); // Send OSC save choice message
break; break;
} }

Loading…
Cancel
Save