diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index c1f5963542..d4ad2baa9c 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -19,6 +19,7 @@ #include "depot_base.h" #include "spritecache.h" #include "strings_func.h" +#include "sound_func.h" #include "vehicle_func.h" #include "company_func.h" #include "tilehighlight_func.h" @@ -815,6 +816,7 @@ struct DepotWindow : Window { } else { ResetObjectToPlace(); } + SndClickBeep(); break; case WID_D_LOCATION: diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 1565d3b5e3..179f4db743 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -654,6 +654,7 @@ struct GenerateLandscapeWindow : public Window { case WID_GL_TROPICAL: case WID_GL_TOYLAND: SetNewLandscapeType(LandscapeType(widget - WID_GL_TEMPERATE)); + SndClickBeep(); break; case WID_GL_MAPSIZE_X_PULLDOWN: // Mapsize X @@ -718,6 +719,7 @@ struct GenerateLandscapeWindow : public Window { case WID_GL_HEIGHTMAP_HEIGHT_TEXT: // Height level text this->widget_id = WID_GL_HEIGHTMAP_HEIGHT_TEXT; ShowQueryString(GetString(STR_JUST_INT, _settings_newgame.game_creation.heightmap_height), STR_MAPGEN_HEIGHTMAP_HEIGHT_QUERY_CAPT, 4, this, CS_NUMERAL, QueryStringFlag::EnableDefault); + SndClickBeep(); break; @@ -753,6 +755,7 @@ struct GenerateLandscapeWindow : public Window { case WID_GL_SNOW_COVERAGE_TEXT: // Snow coverage text this->widget_id = WID_GL_SNOW_COVERAGE_TEXT; ShowQueryString(GetString(STR_JUST_INT, _settings_newgame.game_creation.snow_coverage), STR_MAPGEN_SNOW_COVERAGE_QUERY_CAPT, 4, this, CS_NUMERAL, QueryStringFlag::EnableDefault); + SndClickBeep(); break; case WID_GL_DESERT_COVERAGE_DOWN: @@ -770,6 +773,7 @@ struct GenerateLandscapeWindow : public Window { case WID_GL_DESERT_COVERAGE_TEXT: // Desert line text this->widget_id = WID_GL_DESERT_COVERAGE_TEXT; ShowQueryString(GetString(STR_JUST_INT, _settings_newgame.game_creation.desert_coverage), STR_MAPGEN_DESERT_COVERAGE_QUERY_CAPT, 4, this, CS_NUMERAL, QueryStringFlag::EnableDefault); + SndClickBeep(); break; case WID_GL_HEIGHTMAP_ROTATION_PULLDOWN: // Heightmap rotation @@ -806,26 +810,31 @@ struct GenerateLandscapeWindow : public Window { /* Freetype map borders */ case WID_GL_WATER_NW: _settings_newgame.game_creation.water_borders.Flip(BorderFlag::NorthWest); + SndClickBeep(); this->InvalidateData(); break; case WID_GL_WATER_NE: _settings_newgame.game_creation.water_borders.Flip(BorderFlag::NorthEast); + SndClickBeep(); this->InvalidateData(); break; case WID_GL_WATER_SE: _settings_newgame.game_creation.water_borders.Flip(BorderFlag::SouthEast); + SndClickBeep(); this->InvalidateData(); break; case WID_GL_WATER_SW: _settings_newgame.game_creation.water_borders.Flip(BorderFlag::SouthWest); + SndClickBeep(); this->InvalidateData(); break; case WID_GL_BORDERS_RANDOM: _settings_newgame.game_creation.water_borders = (_settings_newgame.game_creation.water_borders == BorderFlag::Random) ? BorderFlag{} : BorderFlag::Random; + SndClickBeep(); this->InvalidateData(); break; diff --git a/src/picker_gui.cpp b/src/picker_gui.cpp index 048a95f01b..be649cee1c 100644 --- a/src/picker_gui.cpp +++ b/src/picker_gui.cpp @@ -398,6 +398,7 @@ void PickerWindow::OnClick(Point pt, WidgetID widget, int) SetBit(this->callbacks.mode, PFM_ALL); } this->InvalidateData({PickerInvalidation::Class, PickerInvalidation::Type, PickerInvalidation::Position}); + SndClickBeep(); break; case WID_PW_SHRINK: diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 84fb88cd51..b3ae5659a3 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1580,10 +1580,12 @@ public: if (w != nullptr) ToggleRailButton_Remove(w); } + SndClickBeep(); break; case WID_BS_CONVERT: _convert_signal_button = !_convert_signal_button; + SndClickBeep(); break; case WID_BS_DRAG_SIGNALS_DENSITY_DECREASE: diff --git a/src/town_gui.cpp b/src/town_gui.cpp index acf5b9091c..8a26353fd4 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -288,6 +288,7 @@ public: this->town->show_zone = new_show_state; this->SetWidgetLoweredState(widget, new_show_state); + SndClickBeep(); MarkWholeScreenDirty(); break; }