diff options
author | Minteck <nekostarfan@gmail.com> | 2021-06-05 19:27:48 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-06-05 19:27:48 +0200 |
commit | 8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6 (patch) | |
tree | 7096b67b189c0220826123c7d5b121752545d140 /views/script/game_music.js | |
download | kartik-client-8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6.tar.gz kartik-client-8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6.tar.bz2 kartik-client-8cf5cefe6e91a5a1ed6eeaae4d94760d84c304a6.zip |
Presque sortie du jeu
Diffstat (limited to 'views/script/game_music.js')
-rw-r--r-- | views/script/game_music.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/script/game_music.js b/views/script/game_music.js new file mode 100644 index 0000000..29b00da --- /dev/null +++ b/views/script/game_music.js @@ -0,0 +1,10 @@ +startHooks.push(() => { + if (require('@electron/remote').getCurrentWindow().music) { + info("MusicMgr", "Playing game" + i + ".mp3"); + require('electron').ipcRenderer.send('newmusic', kresources.music['game' + i].file); + } +}) + +if (location.search === "?online") { + require('electron').ipcRenderer.send('newmusic', kresources.music['prepare'].file); +}
\ No newline at end of file |