osu/osu.Game/Overlays/Profile/Sections/HistoricalSection.cs
2017-10-24 20:31:38 +02:00

30 lines
898 B
C#

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Online.API.Requests;
using osu.Game.Overlays.Profile.Sections.Ranks;
using osu.Game.Users;
namespace osu.Game.Overlays.Profile.Sections
{
public class HistoricalSection : ProfileSection
{
public override string Title => "Historical";
public override string Identifier => "historical";
private readonly ScoreContainer recent;
public HistoricalSection()
{
Child = recent = new ScoreContainer.TotalScoreContainer(ScoreType.Recent, "Recent Plays (24h)", "No performance records. :(");
}
public override User User
{
get => base.User;
set => base.User = recent.User = value;
}
}
}