feat(menu): sons de navegació i acceptació al menú de servei

This commit is contained in:
JailDesigner committed 2026-04-29 20:27:01 +02:00
1 parent 0847e9c544
commit 45514ae2f4
9 files changed
+62

No files matched your search

+8
View File
@@ -76,6 +76,11 @@ class UiConfig {
// retorna Easing::linear i deixa un warning al log.
[[nodiscard]] static auto curveByName(const std::string& name) -> CurveFn;
// Sons del menú de servei. Claus de Resource::Cache::loadSound (els
// fitxers viuen a `data/sounds/`).
[[nodiscard]] auto menuSelectSound() const -> const std::string& { return menu_select_sound_; }
[[nodiscard]] auto menuAcceptSound() const -> const std::string& { return menu_accept_sound_; }
// Fonts de UI.
[[nodiscard]] auto hudFont() const -> const Font& { return hud_font_; }
[[nodiscard]] auto placeholderFont() const -> const Font& { return placeholder_font_; }
@@ -121,6 +126,9 @@ class UiConfig {
CurveFn pause_enter_curve_;
CurveFn pause_exit_curve_;
std::string menu_select_sound_;
std::string menu_accept_sound_;
Font hud_font_;
Font placeholder_font_;
Font room_text_font_;