Fix: Missing button beeps (#14470)

This commit is contained in:
Tyler Trahan
2025-08-05 13:57:45 -04:00
committed by GitHub
parent dea40880a4
commit 8c58fb1efd
12 changed files with 28 additions and 9 deletions
+4
View File
@@ -11,6 +11,7 @@
#include "dropdown_type.h"
#include "dropdown_func.h"
#include "strings_func.h"
#include "sound_func.h"
#include "timer/timer.h"
#include "timer/timer_window.h"
#include "window_gui.h"
@@ -413,6 +414,9 @@ void ShowDropDownListAt(Window *w, DropDownList &&list, int selected, WidgetID b
*/
void ShowDropDownList(Window *w, DropDownList &&list, int selected, WidgetID button, uint width, bool instant_close, bool persist)
{
/* Handle the beep of the player's click. */
SndClickBeep();
/* Our parent's button widget is used to determine where to place the drop
* down list window. */
NWidgetCore *nwi = w->GetWidget<NWidgetCore>(button);