diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2023-11-26 13:04:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-26 13:04:44 +0900 |
| commit | 5bdae9f6d03bbb1fc1cf341b2e6b3e5d15d03fad (patch) | |
| tree | 70dff15751b9796067de64cb667a026edd41bf97 /packages/frontend/src/scripts | |
| parent | fix: query error in notes/featured (#12439) (diff) | |
| download | sharkey-5bdae9f6d03bbb1fc1cf341b2e6b3e5d15d03fad.tar.gz sharkey-5bdae9f6d03bbb1fc1cf341b2e6b3e5d15d03fad.tar.bz2 sharkey-5bdae9f6d03bbb1fc1cf341b2e6b3e5d15d03fad.zip | |
enhance(frontend): リアクション選択時に音を流せるように (#12441)
* (add) リアクション選択時に音を鳴らせるように
* Update Changelog
* tweak sound
* tweak sound
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/sound.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index 2b604bd98a..4d7ef9bdee 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -38,6 +38,8 @@ export const soundsTypes = [ 'syuilo/waon', 'syuilo/popo', 'syuilo/triple', + 'syuilo/bubble1', + 'syuilo/bubble2', 'syuilo/poi1', 'syuilo/poi2', 'syuilo/pirori', @@ -77,7 +79,7 @@ export async function loadAudio(file: string, useCache = true) { return audioBuffer; } -export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notification') { +export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notification' | 'reaction') { const sound = defaultStore.state[`sound_${type}`]; if (_DEV_) console.log('play', type, sound); if (sound.type == null) return; |