2019-09-28 00:33:52 +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.
|
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2019-11-29 01:09:05 +08:00
|
|
|
|
using System.Collections.Generic;
|
2021-08-29 20:00:28 +08:00
|
|
|
|
using osu.Framework.Extensions.LocalisationExtensions;
|
2019-09-28 00:33:52 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2021-07-30 21:24:10 +08:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2019-11-28 02:56:22 +08:00
|
|
|
|
using osu.Game.Users;
|
2019-09-28 00:33:52 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Rankings.Tables
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class PerformanceTable : UserBasedTable
|
2019-09-28 00:33:52 +08:00
|
|
|
|
{
|
2019-11-29 01:09:05 +08:00
|
|
|
|
public PerformanceTable(int page, IReadOnlyList<UserStatistics> rankings)
|
|
|
|
|
: base(page, rankings)
|
2019-09-28 00:33:52 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-28 00:46:49 +08:00
|
|
|
|
protected override RankingsTableColumn[] CreateUniqueHeaders() => new[]
|
2019-09-28 00:33:52 +08:00
|
|
|
|
{
|
2021-07-30 21:24:10 +08:00
|
|
|
|
new RankingsTableColumn(RankingsStrings.StatPerformance, Anchor.Centre, new Dimension(GridSizeMode.AutoSize), true),
|
2019-09-28 00:33:52 +08:00
|
|
|
|
};
|
|
|
|
|
|
2019-11-28 04:58:31 +08:00
|
|
|
|
protected override Drawable[] CreateUniqueContent(UserStatistics item) => new Drawable[]
|
2019-09-28 00:33:52 +08:00
|
|
|
|
{
|
2022-05-02 20:07:53 +08:00
|
|
|
|
new RowText { Text = item.PP?.ToLocalisableString(@"N0") ?? default, }
|
2019-11-28 04:35:02 +08:00
|
|
|
|
};
|
2019-09-28 00:33:52 +08:00
|
|
|
|
}
|
|
|
|
|
}
|