Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/html/pages/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@
<button data-config-value="14">fist fight</button>
<button data-config-value="15">rubber keys</button>
<button data-config-value="16">fart</button>
<button data-config-value="17">chalk</button>
</div>
</div>
<div class="section fullWidth" data-config-name="playSoundOnError">
Expand Down
1 change: 1 addition & 0 deletions frontend/src/ts/commandline/commandline-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export const commandlineConfigMetadata: CommandlineConfigMetadataObject = {
"14": "fist fight",
"15": "rubber keys",
"16": "fart",
"17": "chalk",
};
return map[value];
},
Expand Down
58 changes: 58 additions & 0 deletions frontend/src/ts/controllers/sound-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,64 @@ async function init(): Promise<void> {
counter: 0,
},
],
17: [
{
sounds: [
new Howl({ src: "../sound/click17/click17_1.wav" }),
new Howl({ src: "../sound/click17/click17_1.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_2.wav" }),
new Howl({ src: "../sound/click17/click17_2.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_3.wav" }),
new Howl({ src: "../sound/click17/click17_3.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_4.wav" }),
new Howl({ src: "../sound/click17/click17_4.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_5.wav" }),
new Howl({ src: "../sound/click17/click17_5.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_6.wav" }),
new Howl({ src: "../sound/click17/click17_6.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_7.wav" }),
new Howl({ src: "../sound/click17/click17_7.wav" }),
],
counter: 0,
},
{
sounds: [
new Howl({ src: "../sound/click17/click17_8.wav" }),
new Howl({ src: "../sound/click17/click17_8.wav" }),
],
counter: 0,
},
],
};
Howler.volume(Config.soundVolume);
}
Expand Down
Binary file added frontend/static/sound/click17/click17_1.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_2.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_3.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_4.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_5.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_6.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_7.wav
Binary file not shown.
Binary file added frontend/static/sound/click17/click17_8.wav
Binary file not shown.
1 change: 1 addition & 0 deletions packages/schemas/src/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const PlaySoundOnClickSchema = z.enum([
"14",
"15",
"16",
"17",
]);
export type PlaySoundOnClick = z.infer<typeof PlaySoundOnClickSchema>;

Expand Down
Loading