1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 14:30:40 +08:00

SongSelectV2: Fix some missing/incorrect SFX

This commit is contained in:
Jamie Taylor
2025-05-30 21:25:36 +09:00
Unverified
parent 9e615718e9
commit cf6e9f8ad8
4 changed files with 20 additions and 8 deletions
@@ -10,7 +10,6 @@ namespace osu.Game.Graphics.UserInterface
{
public partial class ShearedToggleButton : ShearedButton
{
private Sample? sampleClick;
private Sample? sampleOff;
private Sample? sampleOn;
@@ -43,9 +42,8 @@ namespace osu.Game.Graphics.UserInterface
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{
sampleClick = audio.Samples.Get(@"UI/default-select");
sampleOn = audio.Samples.Get(@"UI/dropdown-open");
sampleOff = audio.Samples.Get(@"UI/dropdown-close");
sampleOn = audio.Samples.Get(@"UI/check-on");
sampleOff = audio.Samples.Get(@"UI/check-off");
}
protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverSounds(sampleSet);
@@ -72,8 +70,6 @@ namespace osu.Game.Graphics.UserInterface
private void playSample()
{
sampleClick?.Play();
if (PlayToggleSamples)
{
if (Active.Value)