Feat: 自动检索音效文件夹下的素材随机播放,并配备对应文案

This commit is contained in:
2025-08-22 13:59:36 +08:00
parent 182768afcb
commit 3e770368b5
3 changed files with 50 additions and 21 deletions

View File

@ -9,6 +9,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
}
},
getSoundPath: (soundFile) => ipcRenderer.invoke('get-sound-path', soundFile),
getSoundFiles: () => ipcRenderer.invoke('get-sound-files'),
showTooltip: (text) => ipcRenderer.send('show-tooltip', text),
onUpdatePosition: (callback) => {
ipcRenderer.on('update-position', (_, position) => callback(position))