1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 05:43:41 +08:00

Merge pull request #35702 from nekodex/matchmaking-random-reveal-sfx

Add SFX to the matchmaking roulette random reveal
This commit is contained in:
Dean Herbert
2025-11-16 21:23:57 +09:00
committed by GitHub
Unverified
2 changed files with 4 additions and 1 deletions
@@ -43,6 +43,7 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Match.BeatmapSelect
private readonly Sample?[] spinSamples = new Sample?[5];
private static readonly int[] spin_sample_sequence = [0, 1, 2, 3, 4, 2, 3, 4];
private Sample? randomRevealSample;
private Sample? resultSample;
private Sample? swooshSample;
private double? lastSamplePlayback;
@@ -80,6 +81,7 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Match.BeatmapSelect
for (int i = 0; i < spinSamples.Length; i++)
spinSamples[i] = audio.Samples.Get($@"Multiplayer/Matchmaking/Selection/roulette-{i}");
randomRevealSample = audio.Samples.Get(@"Multiplayer/Matchmaking/Selection/random-reveal");
resultSample = audio.Samples.Get(@"Multiplayer/Matchmaking/Selection/roulette-result");
swooshSample = audio.Samples.Get(@"SongSelect/options-pop-out");
}
@@ -136,6 +138,7 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Match.BeatmapSelect
return;
panel.DisplayItem(item);
randomRevealSample?.Play();
}
public void RollAndDisplayFinalBeatmap(long[] candidateItemIds, long finalItemId)
+1 -1
View File
@@ -36,7 +36,7 @@
</PackageReference>
<PackageReference Include="Realm" Version="20.1.0" />
<PackageReference Include="ppy.osu.Framework" Version="2025.1111.0" />
<PackageReference Include="ppy.osu.Game.Resources" Version="2025.1105.0" />
<PackageReference Include="ppy.osu.Game.Resources" Version="2025.1116.0" />
<PackageReference Include="Sentry" Version="5.1.1" />
<!-- Held back due to 0.34.0 failing AOT compilation on ZstdSharp.dll dependency. -->
<PackageReference Include="SharpCompress" Version="0.39.0" />