2020-08-01 03:14:24 +00: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.
|
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-08-01 04:04:39 +00:00
|
|
|
|
using System;
|
2020-08-01 03:14:24 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics;
|
2021-11-01 07:02:00 +00:00
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2020-08-01 03:14:24 +00:00
|
|
|
|
|
2020-08-02 18:47:09 +00:00
|
|
|
|
namespace osu.Game.Overlays.Dashboard.Home
|
2020-08-01 03:14:24 +00:00
|
|
|
|
{
|
|
|
|
|
public class DashboardNewBeatmapPanel : DashboardBeatmapPanel
|
|
|
|
|
{
|
2021-11-01 07:02:00 +00:00
|
|
|
|
public DashboardNewBeatmapPanel(APIBeatmapSet beatmapSet)
|
|
|
|
|
: base(beatmapSet)
|
2020-08-01 03:14:24 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-01 07:02:00 +00:00
|
|
|
|
protected override Drawable CreateInfo() => new DrawableDate(BeatmapSet.Ranked ?? DateTimeOffset.Now, 10, false)
|
2020-08-01 03:14:24 +00:00
|
|
|
|
{
|
|
|
|
|
Colour = ColourProvider.Foreground1
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|