Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a dedicated Sounds settings screen alongside existing Settings/Graphics/Controls menus, wiring it into the main menu flow so players can adjust audio volumes at runtime.
Changes:
- Added a new
SoundsMenuUI with sliders (master/music/effects) and a Done button. - Extended
SettingsMenuwith a Sounds button and callback to open the new menu. - Integrated the new menu into
App(creation, resize handling, escape/back navigation, cleanup) and adjusted the defaultmusicVolume.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/client/menus/SoundsMenu.cpp |
New menu implementation for rendering and interacting with volume sliders. |
include/client/menus/SoundsMenu.hpp |
New menu interface and slider APIs. |
src/client/menus/SettingsMenu.cpp |
Adds Sounds button layout/render/hover/click handling. |
include/client/menus/SettingsMenu.hpp |
Adds setSoundsCallback and stores callback/button state. |
src/client/App.cpp |
Creates soundsMenu, adds volume sliders, routes Settings→Sounds and Escape/back behavior, handles resize/cleanup. |
include/client/App.hpp |
Adds soundsMenu member and include. |
src/client/AudioManager.cpp |
Removes several loadSfx(...) entries during asset preload. |
include/client/AudioManager.hpp |
Changes default musicVolume from 0.0f to 0.8f. |
Comments suppressed due to low confidence (1)
src/client/AudioManager.cpp:289
SoundId::Player_Jumpis still played inupdateFootsteps()(jump edge), butloadAllAssets()no longer loads any asset for that id. As a result, jump SFX will be silent at runtime. Please restore theloadSfx(SoundId::Player_Jump, ...)call (or remove the playback if the sound is being deprecated).
loadSfx(SoundId::Player_Splash, {
"assets/sounds/liquids/splash.wav",
"assets/sounds/liquids/splash2.wav",
});
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Devinci24
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.