diff --git a/osu.Game/Screens/Select/Footer.cs b/osu.Game/Screens/Select/Footer.cs
index b5afc7b0ff..6ba29751b0 100644
--- a/osu.Game/Screens/Select/Footer.cs
+++ b/osu.Game/Screens/Select/Footer.cs
@@ -6,7 +6,6 @@ using System.Collections.Generic;
using System.Linq;
using osuTK;
using osuTK.Graphics;
-using osuTK.Input;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
@@ -34,22 +33,19 @@ namespace osu.Game.Screens.Select
/// THe button to be added.
/// The to be toggled by this button.
- /// Hotkey of the button.
- public void AddButton(FooterButton button, OverlayContainer overlay, Key? hotkey = null)
+ public void AddButton(FooterButton button, OverlayContainer overlay)
{
overlays.Add(overlay);
- AddButton(button, () => showOverlay(overlay), hotkey);
+ button.Action = () => showOverlay(overlay);
+
+ AddButton(button);
}
/// Button to be added.
- /// Action the button does.
- /// Hotkey of the button.
- public void AddButton(FooterButton button, Action action, Key? hotkey = null)
+ public void AddButton(FooterButton button)
{
- button.Hotkey = hotkey;
button.Hovered = updateModeLight;
button.HoverLost = updateModeLight;
- button.Action = action;
buttons.Add(button);
}
diff --git a/osu.Game/Screens/Select/FooterButtonMods.cs b/osu.Game/Screens/Select/FooterButtonMods.cs
index 4343ee6cdb..c96c5022c0 100644
--- a/osu.Game/Screens/Select/FooterButtonMods.cs
+++ b/osu.Game/Screens/Select/FooterButtonMods.cs
@@ -11,6 +11,7 @@ using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Game.Graphics;
using osuTK;
+using osuTK.Input;
namespace osu.Game.Screens.Select
{
@@ -43,6 +44,7 @@ namespace osu.Game.Screens.Select
SelectedColour = colours.Yellow;
DeselectedColour = SelectedColour.Opacity(0.5f);
Text = @"mods";
+ Hotkey = Key.F1;
}
private class FooterModDisplay : ModDisplay
diff --git a/osu.Game/Screens/Select/FooterButtonOptions.cs b/osu.Game/Screens/Select/FooterButtonOptions.cs
index 1fbe03216d..0e4a32299d 100644
--- a/osu.Game/Screens/Select/FooterButtonOptions.cs
+++ b/osu.Game/Screens/Select/FooterButtonOptions.cs
@@ -1,6 +1,7 @@
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Game.Graphics;
+using osuTK.Input;
namespace osu.Game.Screens.Select
{
@@ -12,6 +13,7 @@ namespace osu.Game.Screens.Select
SelectedColour = colours.Blue;
DeselectedColour = SelectedColour.Opacity(0.5f);
Text = @"options";
+ Hotkey = Key.F3;
}
}
-}
\ No newline at end of file
+}
diff --git a/osu.Game/Screens/Select/FooterButtonRandom.cs b/osu.Game/Screens/Select/FooterButtonRandom.cs
index 06f2e1ee43..14c9eb2035 100644
--- a/osu.Game/Screens/Select/FooterButtonRandom.cs
+++ b/osu.Game/Screens/Select/FooterButtonRandom.cs
@@ -8,6 +8,7 @@ using osu.Framework.Graphics.Sprites;
using osu.Framework.Input.Events;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
+using osuTK.Input;
namespace osu.Game.Screens.Select
{
@@ -33,6 +34,7 @@ namespace osu.Game.Screens.Select
SelectedColour = colours.Green;
DeselectedColour = SelectedColour.Opacity(0.5f);
Text = @"random";
+ Hotkey = Key.F2;
}
protected override bool OnKeyDown(KeyDownEvent e)
diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs
index c747fdee60..d5301116a9 100644
--- a/osu.Game/Screens/Select/SongSelect.cs
+++ b/osu.Game/Screens/Select/SongSelect.cs
@@ -223,9 +223,9 @@ namespace osu.Game.Screens.Select
if (Footer != null)
{
- Footer.AddButton(new FooterButtonMods(mods), ModSelect, Key.F1);
- Footer.AddButton(new FooterButtonRandom(), triggerRandom, Key.F2);
- Footer.AddButton(new FooterButtonOptions(), BeatmapOptions, Key.F3);
+ Footer.AddButton(new FooterButtonMods(mods), ModSelect);
+ Footer.AddButton(new FooterButtonRandom { Action = triggerRandom });
+ Footer.AddButton(new FooterButtonOptions(), BeatmapOptions);
BeatmapOptions.AddButton(@"Delete", @"all difficulties", FontAwesome.Solid.Trash, colours.Pink, () => delete(Beatmap.Value.BeatmapSetInfo), Key.Number4, float.MaxValue);
BeatmapOptions.AddButton(@"Remove", @"from unplayed", FontAwesome.Regular.TimesCircle, colours.Purple, null, Key.Number1);