GUI enchancements (themes, sound notification, deck validation) (#6755)

GUI enchancements (themes, sound notification, deck validation)
This commit is contained in:
18ths 2020-07-17 19:15:02 +02:00 committed by GitHub
parent 8c4c2728d6
commit 99d5eafc8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
128 changed files with 1988 additions and 11320 deletions

View file

@ -47,6 +47,7 @@ public class AudioManager {
private MageClip playerQuitTournament = null;
private MageClip playerWon = null;
private MageClip playerLost = null;
private MageClip feedbackNeeded = null;
/**
* AudioManager singleton.
*/
@ -284,6 +285,13 @@ public class AudioManager {
}
checkAndPlayClip(audioManager.playerWon);
}
public static void playFeedbackNeeded() {
if (audioManager.feedbackNeeded == null) {
audioManager.feedbackNeeded = new MageClip(Constants.BASE_SOUND_PATH + "FeedbackNeeded.wav", AudioGroup.GameSounds);
}
checkAndPlayClip(audioManager.feedbackNeeded);
}
private static boolean audioGroupEnabled(AudioGroup audioGroup) {
switch (audioGroup) {