mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Injected a simple toggle into the decorator for the window for the sound.
Unsure if this is the best way to do it but not a bad thing to try for now. tags : #story[1245] #story[1249]
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package seng302.utilities;
|
||||
|
||||
import javafx.scene.media.AudioClip;
|
||||
import javafx.scene.media.Media;
|
||||
import javafx.scene.media.MediaPlayer;
|
||||
|
||||
@@ -45,6 +44,11 @@ public class Sounds {
|
||||
}
|
||||
}
|
||||
|
||||
public static void toggleAllSounds() {
|
||||
toggleMuteEffects();
|
||||
toggleMuteMusic();
|
||||
}
|
||||
|
||||
public static void toggleMuteMusic() {
|
||||
musicMuted = !musicMuted;
|
||||
if (musicPlayer != null) {
|
||||
|
||||
Reference in New Issue
Block a user