mirror of
https://github.com/ppy/osu.git
synced 2026-06-06 00:38:33 +08:00
Allow scrolling to adjust volume
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user