Feat: 自动检索音效文件夹下的素材随机播放,并配备对应文案
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user