push per a enviar a revisió per Doc

This commit is contained in:
2025-06-30 19:03:49 +02:00
parent 129b4855bc
commit b15dfdc7e3
73 changed files with 24 additions and 9 deletions

View File

@@ -83,7 +83,7 @@ void ServiceMenu::setSelectorUp()
if (display_options_.empty())
return;
selected_ = (selected_ > 0) ? selected_ - 1 : display_options_.size() - 1;
playMenuSound();
playMoveSound();
}
void ServiceMenu::setSelectorDown()
@@ -91,7 +91,7 @@ void ServiceMenu::setSelectorDown()
if (display_options_.empty())
return;
selected_ = (selected_ + 1) % display_options_.size();
playMenuSound();
playMoveSound();
}
void ServiceMenu::adjustOption(bool adjust_up)
@@ -103,7 +103,7 @@ void ServiceMenu::adjustOption(bool adjust_up)
{
selected_option->adjustValue(adjust_up);
applySettings();
playMenuSound();
playAdjustSound();
}
}
@@ -125,7 +125,7 @@ void ServiceMenu::selectOption()
{
selected_option->executeAction();
}
playMenuSound();
playSelectSound();
}
void ServiceMenu::moveBack()
@@ -138,7 +138,7 @@ void ServiceMenu::moveBack()
current_settings_group_ = previous_settings_group_;
selected_ = (current_settings_group_ == SettingsGroup::MAIN) ? main_menu_selected_ : 0;
updateMenu();
playMenuSound();
playBackSound();
}
// --- Lógica Interna ---
@@ -304,7 +304,10 @@ void ServiceMenu::AdjustListValues()
}
// Reproduce el sonido de navegación del menú
void ServiceMenu::playMenuSound() { Audio::get()->playSound("clock.wav"); }
void ServiceMenu::playAdjustSound() { Audio::get()->playSound("service_menu_adjust.wav"); }
void ServiceMenu::playMoveSound() { Audio::get()->playSound("service_menu_move.wav"); }
void ServiceMenu::playSelectSound() { Audio::get()->playSound("service_menu_select.wav"); }
void ServiceMenu::playBackSound() { Audio::get()->playSound("service_menu_select.wav"); }
// Devuelve el nombre del grupo como string para el título
std::string ServiceMenu::settingsGroupToString(SettingsGroup group) const