mirror of
https://github.com/ppy/osu
synced 2025-04-01 22:48:33 +00:00
Merge pull request #9564 from Joehuu/fix-back-button-glow-mod-select
Fix back button not glowing when closing mod select with escape
This commit is contained in:
commit
3ae7104bfe
@ -19,6 +19,7 @@ using osu.Game.Graphics.Backgrounds;
|
|||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
|
using osu.Game.Input.Bindings;
|
||||||
using osu.Game.Overlays.Mods.Sections;
|
using osu.Game.Overlays.Mods.Sections;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using osu.Game.Screens;
|
using osu.Game.Screens;
|
||||||
@ -403,6 +404,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
return base.OnKeyDown(e);
|
return base.OnKeyDown(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool OnPressed(GlobalAction action) => false; // handled by back button
|
||||||
|
|
||||||
private void availableModsChanged(ValueChangedEvent<Dictionary<ModType, IReadOnlyList<Mod>>> mods)
|
private void availableModsChanged(ValueChangedEvent<Dictionary<ModType, IReadOnlyList<Mod>>> mods)
|
||||||
{
|
{
|
||||||
if (mods.NewValue == null) return;
|
if (mods.NewValue == null) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user