2022-12-01 22:34:09 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2023-09-04 12:49:29 +08:00
|
|
|
using osu.Framework.Extensions;
|
|
|
|
using osu.Framework.Graphics.Cursor;
|
2022-12-01 22:34:09 +08:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
2023-09-04 12:49:29 +08:00
|
|
|
using osu.Framework.Graphics.UserInterface;
|
2022-12-03 02:16:25 +08:00
|
|
|
using osu.Game.Graphics;
|
2022-12-19 23:35:20 +08:00
|
|
|
using osu.Game.Input.Bindings;
|
2024-05-16 12:21:32 +08:00
|
|
|
using osu.Game.Overlays;
|
2024-05-16 09:36:14 +08:00
|
|
|
using osu.Game.Screens.Footer;
|
2022-12-01 22:34:09 +08:00
|
|
|
|
2024-05-16 09:36:14 +08:00
|
|
|
namespace osu.Game.Screens.SelectV2.Footer
|
2022-12-01 22:34:09 +08:00
|
|
|
{
|
2024-05-16 09:36:14 +08:00
|
|
|
public partial class ScreenFooterButtonOptions : ScreenFooterButton, IHasPopover
|
2022-12-01 22:34:09 +08:00
|
|
|
{
|
2024-05-16 12:21:32 +08:00
|
|
|
[Resolved]
|
|
|
|
private OverlayColourProvider colourProvider { get; set; } = null!;
|
|
|
|
|
2022-12-01 22:34:09 +08:00
|
|
|
[BackgroundDependencyLoader]
|
2022-12-03 02:16:25 +08:00
|
|
|
private void load(OsuColour colour)
|
2022-12-01 22:34:09 +08:00
|
|
|
{
|
|
|
|
Text = "Options";
|
|
|
|
Icon = FontAwesome.Solid.Cog;
|
2022-12-03 02:16:25 +08:00
|
|
|
AccentColour = colour.Purple1;
|
2022-12-19 23:35:20 +08:00
|
|
|
Hotkey = GlobalAction.ToggleBeatmapOptions;
|
2023-09-04 12:49:29 +08:00
|
|
|
|
2024-05-12 10:24:20 +08:00
|
|
|
Action = this.ShowPopover;
|
2023-09-04 12:49:29 +08:00
|
|
|
}
|
|
|
|
|
2024-05-16 12:21:32 +08:00
|
|
|
public Popover GetPopover() => new BeatmapOptionsPopover(this, colourProvider);
|
2022-12-01 22:34:09 +08:00
|
|
|
}
|
|
|
|
}
|