Skip to content
This repository was archived by the owner on Jul 2, 2023. It is now read-only.

Commit fb55245

Browse files
Merge pull request #20 from AndresMorelos/minecraft-sound-track
Adding Minecraft sound pack
2 parents 018d7a2 + 5d091a5 commit fb55245

File tree

14 files changed

+53
-1
lines changed

14 files changed

+53
-1
lines changed

app/components/settings/General.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class General extends Component {
4444
>
4545
<option value="default">{t('common:default')}</option>
4646
<option value="cs">Counter Strike</option>
47+
<option value="minecraft">Minecraft</option>
4748
</select>
4849
</div>
4950
</div>

app/renderers/dialog.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const { ipcRenderer } = require("electron")
2+
const sounds = require('../../libs/sounds')
23

34
const openDialog = (dialogOptions, returnChannel, ...rest) => {
45
ipcRenderer.send('open-dialog', dialogOptions, returnChannel, ...rest)
6+
sounds.play('DIALOG');
57
}
68

79
module.exports = openDialog;

libs/sounds.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const appConfig = require('@electron/remote').require('electron-settings');
44
// Sound Themes
55
const cs_sounds = require('../static/sounds/cs/index.js');
66
const default_sounds = require('../static/sounds/default/index.js');
7+
const minecraft_sounds = require('../static/sounds/minecraft/index.js');
78

89
let cache;
910
function preload() {
@@ -27,6 +28,10 @@ function setSounds() {
2728
sounds = cs_sounds;
2829
break;
2930
}
31+
case 'minecraft': {
32+
sounds = minecraft_sounds;
33+
break;
34+
}
3035
default: {
3136
sounds = default_sounds;
3237
break;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "invoncify",
33
"homepage": "https://invoncify.andresmorelos.me",
44
"productName": "Invoncify",
5-
"version": "1.5.1",
5+
"version": "1.5.2",
66
"license": "GPL-3.0",
77
"description": "Flexible invoicing desktop app with beautiful & customizable templates",
88
"author": {

static/sounds/minecraft/attack.wav

7.1 KB
Binary file not shown.

static/sounds/minecraft/endermen.wav

80.2 KB
Binary file not shown.

static/sounds/minecraft/evocation.wav

189 KB
Binary file not shown.

static/sounds/minecraft/fireworks.wav

175 KB
Binary file not shown.

static/sounds/minecraft/index.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
const path = require('path');
2+
const VOLUME = 0.5;
3+
4+
module.exports = {
5+
STARTUP: {
6+
url: path.resolve(__dirname, '../static/sounds/minecraft/evocation.wav'),
7+
volume: VOLUME * 2,
8+
},
9+
10+
DIALOG: {
11+
url: path.resolve(__dirname, '../static/sounds/minecraft/pop.wav'),
12+
volume: VOLUME,
13+
},
14+
15+
SUCCESS: {
16+
url: path.resolve(__dirname, '../static/sounds/minecraft/fireworks.wav'),
17+
volume: VOLUME,
18+
},
19+
20+
WARNING: {
21+
url: path.resolve(__dirname, '../static/sounds/minecraft/villager.wav'),
22+
volume: VOLUME,
23+
},
24+
25+
ADD: {
26+
url: path.resolve(__dirname, '../static/sounds/minecraft/ravarger.wav'),
27+
volume: VOLUME,
28+
},
29+
30+
REMOVE: {
31+
url: path.resolve(__dirname, '../static/sounds/minecraft/attack.wav'),
32+
volume: VOLUME,
33+
},
34+
35+
RELOAD: {
36+
url: path.resolve(__dirname, '../static/sounds/minecraft/vex.wav'),
37+
volume: VOLUME,
38+
},
39+
40+
TAP: {
41+
url: path.resolve(__dirname, '../static/sounds/minecraft/endermen.wav'),
42+
volume: VOLUME,
43+
},
44+
};

static/sounds/minecraft/pop.wav

16.2 KB
Binary file not shown.

static/sounds/minecraft/ravarger.wav

163 KB
Binary file not shown.

static/sounds/minecraft/step.wav

45.8 KB
Binary file not shown.

static/sounds/minecraft/vex.wav

234 KB
Binary file not shown.

static/sounds/minecraft/villager.wav

56.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)