2019-09-27 19:33:52 +03: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.
|
|
|
|
|
|
2019-11-28 20:09:05 +03:00
|
|
|
|
using System.Collections.Generic;
|
2019-09-27 19:33:52 +03:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2019-11-27 21:56:22 +03:00
|
|
|
|
using osu.Game.Users;
|
2019-09-27 19:33:52 +03:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Rankings.Tables
|
|
|
|
|
{
|
2019-11-27 23:35:02 +03:00
|
|
|
|
public class PerformanceTable : UserBasedTable
|
2019-09-27 19:33:52 +03:00
|
|
|
|
{
|
2019-11-28 20:09:05 +03:00
|
|
|
|
public PerformanceTable(int page, IReadOnlyList<UserStatistics> rankings)
|
|
|
|
|
: base(page, rankings)
|
2019-09-27 19:33:52 +03:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-27 23:35:02 +03:00
|
|
|
|
protected override TableColumn[] CreateUniqueHeaders() => new[]
|
2019-09-27 19:33:52 +03:00
|
|
|
|
{
|
2019-11-03 14:31:23 +03:00
|
|
|
|
new TableColumn("Performance", Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
|
2019-09-27 19:33:52 +03:00
|
|
|
|
};
|
|
|
|
|
|
2019-11-27 23:58:31 +03:00
|
|
|
|
protected override Drawable[] CreateUniqueContent(UserStatistics item) => new Drawable[]
|
2019-09-27 19:33:52 +03:00
|
|
|
|
{
|
2019-11-28 19:07:43 +09:00
|
|
|
|
new RowText { Text = $@"{item.PP:N0}", }
|
2019-11-27 23:35:02 +03:00
|
|
|
|
};
|
2019-09-27 19:33:52 +03:00
|
|
|
|
}
|
|
|
|
|
}
|