From e205996ca46930fa32e4fd44c3a879d452f66d75 Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 30 Jul 2021 18:22:32 -0700 Subject: [PATCH] DJUI: Added sounds to popups --- src/pc/djui/djui_popup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pc/djui/djui_popup.c b/src/pc/djui/djui_popup.c index 65c88f8b..7f2b2816 100644 --- a/src/pc/djui/djui_popup.c +++ b/src/pc/djui/djui_popup.c @@ -1,5 +1,7 @@ #include #include "djui.h" +#include "audio_defines.h" +#include "audio/external.h" #include "pc/network/network.h" #include "pc/utils/misc.h" @@ -54,6 +56,7 @@ struct DjuiPopup* djui_popup_create(const char* message, int lines) { sPopupListY -= height + 4; djui_popup_add_to_list(popup); + play_sound(SOUND_MENU_MESSAGE_APPEAR, gDefaultSoundArgs); return popup; } @@ -85,6 +88,7 @@ void djui_popup_update(void) { djui_base_destroy(&node->popup->base); free(node); node = next; + play_sound(SOUND_MENU_MESSAGE_DISAPPEAR, gDefaultSoundArgs); continue; } } else {