Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing sounds #589

Merged
merged 1 commit into from
Jun 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/gui/dialogs/DialogRadioButton.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "DialogRadioButton.hpp"
#include <algorithm> //find
#include "button_draw.h"
#include "sound_C_wrapper.h"
/*****************************************************************************/
//static variables and methods
static const PhaseResponses no_responses = { Response::_none, Response::_none, Response::_none, Response::_none }; //used in constructor
Expand Down Expand Up @@ -38,6 +39,8 @@ RadioButton &RadioButton::operator++() {
if ((selected_index + 1) < btn_count) {
++selected_index; //btn_count can be 0
need_redraw = true;
} else {
Sound_Play(eSOUND_TYPE_BlindAlert);
}
return *this;
}
Expand All @@ -47,6 +50,8 @@ RadioButton &RadioButton::operator--() {
if (selected_index > 0) {
--selected_index;
need_redraw = true;
} else {
Sound_Play(eSOUND_TYPE_BlindAlert);
}
return *this;
}
Expand Down