Fix mod overlay not closing on toggle hotkey

This commit is contained in:
Bartłomiej Dach
2022-05-05 21:22:07 +02:00
parent 8f65e0e60f
commit 34cf4c6a38
3 changed files with 27 additions and 1 deletions

View File

@ -12,6 +12,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Screens;
using osu.Game.Beatmaps;
using osu.Game.Input.Bindings;
using osu.Game.Online.API;
using osu.Game.Online.Rooms;
using osu.Game.Overlays;
@ -162,6 +163,7 @@ namespace osu.Game.Screens.OnlinePlay
protected override ModSelectScreen CreateModSelectOverlay() => new UserModSelectScreen(OverlayColourScheme.Plum)
{
Hotkey = GlobalAction.ToggleModSelection,
IsValidMod = IsValidMod
};

View File

@ -333,7 +333,10 @@ namespace osu.Game.Screens.Select
(new FooterButtonOptions(), BeatmapOptions)
};
protected virtual ModSelectScreen CreateModSelectOverlay() => new UserModSelectScreen();
protected virtual ModSelectScreen CreateModSelectOverlay() => new UserModSelectScreen
{
Hotkey = GlobalAction.ToggleModSelection
};
protected virtual void ApplyFilterToCarousel(FilterCriteria criteria)
{