1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 01:17:27 +08:00
osu-lazer/osu.Game/Screens/Ranking/CollectionButton.cs
Joseph Madamba 04b15d0d38 Remove unnecessary ReceivePositionalInputAt
Results is not even using the new footer.
2024-07-27 19:02:43 -07:00

41 lines
1.1 KiB
C#

// 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;
using osu.Framework.Extensions;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using osuTK;
namespace osu.Game.Screens.Ranking
{
public partial class CollectionButton : GrayButton, IHasPopover
{
private readonly BeatmapInfo beatmapInfo;
public CollectionButton(BeatmapInfo beatmapInfo)
: base(FontAwesome.Solid.Book)
{
this.beatmapInfo = beatmapInfo;
Size = new Vector2(75, 30);
TooltipText = "collections";
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Background.Colour = colours.Green;
Action = this.ShowPopover;
}
public Popover GetPopover() => new CollectionPopover(beatmapInfo);
}
}