feat: volume settings

This commit is contained in:
Face 2025-05-29 17:41:09 +03:00
parent 8a69bbca88
commit 95df713b06
16 changed files with 1794 additions and 112 deletions

View file

@ -162,6 +162,8 @@
import confetti from 'canvas-confetti';
import { toast } from 'svelte-sonner';
import { formatValue, playSound, showConfetti } from '$lib/utils';
import { volumeSettings } from '$lib/stores/volume-settings';
import { onMount } from 'svelte';
interface CoinflipResult {
won: boolean;
@ -311,6 +313,10 @@
activeSoundTimeouts = [];
}
}
onMount(() => {
volumeSettings.load();
});
</script>
<Card>

View file

@ -11,6 +11,8 @@
import confetti from 'canvas-confetti';
import { toast } from 'svelte-sonner';
import { formatValue, playSound, showConfetti, showSchoolPrideCannons } from '$lib/utils';
import { volumeSettings } from '$lib/stores/volume-settings';
import { onMount } from 'svelte';
interface SlotsResult {
won: boolean;
@ -208,6 +210,10 @@
}
}
});
onMount(() => {
volumeSettings.load();
});
</script>
<Card>