Added tests for sounds and modified the transparency for the chat history window.

#story[1245]
This commit is contained in:
Kusal Ekanayake
2017-09-12 18:11:32 +12:00
parent e518d13fd5
commit c8dc448a52
6 changed files with 72 additions and 8 deletions
+5 -4
View File
@@ -26,7 +26,9 @@ public class Sounds {
}
}
public static void setMutes() {
static void setMutes() {
if (soundPlayer != null) {
soundPlayer.setMute(soundEffectsMuted);
}
@@ -49,14 +51,14 @@ public class Sounds {
toggleMuteMusic();
}
public static void toggleMuteMusic() {
static void toggleMuteMusic() {
musicMuted = !musicMuted;
if (musicPlayer != null) {
musicPlayer.setMute(musicMuted);
}
}
public static void toggleMuteEffects() {
static void toggleMuteEffects() {
soundEffectsMuted = !soundEffectsMuted;
if (soundPlayer != null) {
soundPlayer.setMute(soundEffectsMuted);
@@ -188,5 +190,4 @@ public class Sounds {
}
}
}