From 0b6e36d61e869954e53f4ffb80f19913a85da9ca Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Tue, 13 May 2025 14:08:12 +0300 Subject: [PATCH] Allow scrolling to adjust volume --- osu.Game.Tests/Visual/SongSelectV2/SongSelectTestScene.cs | 4 ++++ osu.Game/Screens/SelectV2/SongSelect.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/osu.Game.Tests/Visual/SongSelectV2/SongSelectTestScene.cs b/osu.Game.Tests/Visual/SongSelectV2/SongSelectTestScene.cs index 5f23e6caef..a2c3791f67 100644 --- a/osu.Game.Tests/Visual/SongSelectV2/SongSelectTestScene.cs +++ b/osu.Game.Tests/Visual/SongSelectV2/SongSelectTestScene.cs @@ -44,6 +44,9 @@ namespace osu.Game.Tests.Visual.SongSelectV2 [Cached] private readonly OsuLogo logo; + [Cached] + private readonly VolumeOverlay volume; + [Cached(typeof(INotificationOverlay))] private readonly INotificationOverlay notificationOverlay = new NotificationOverlay(); @@ -68,6 +71,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2 { Alpha = 0f, }, + volume = new VolumeOverlay(), }, }, }; diff --git a/osu.Game/Screens/SelectV2/SongSelect.cs b/osu.Game/Screens/SelectV2/SongSelect.cs index 146d971f8f..3ec74710f7 100644 --- a/osu.Game/Screens/SelectV2/SongSelect.cs +++ b/osu.Game/Screens/SelectV2/SongSelect.cs @@ -19,6 +19,7 @@ using osu.Game.Graphics.Containers; using osu.Game.Input.Bindings; using osu.Game.Overlays; using osu.Game.Overlays.Mods; +using osu.Game.Overlays.Volume; using osu.Game.Screens.Footer; using osu.Game.Screens.Menu; using osu.Game.Screens.Select; @@ -78,6 +79,7 @@ namespace osu.Game.Screens.SelectV2 { AddRangeInternal(new Drawable[] { + new GlobalScrollAdjustsVolume(), new Box { RelativeSizeAxes = Axes.Both,