mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 02:27:25 +08:00
31 lines
852 B
C#
31 lines
852 B
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.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Users;
|
|
|
|
namespace osu.Game.Overlays.Rankings.Tables
|
|
{
|
|
public class PerformanceTable : UserBasedTable
|
|
{
|
|
public PerformanceTable(int page = 1)
|
|
: base(page)
|
|
{
|
|
}
|
|
|
|
protected override TableColumn[] CreateUniqueHeaders() => new[]
|
|
{
|
|
new TableColumn("Performance", Anchor.Centre, new Dimension(GridSizeMode.AutoSize)),
|
|
};
|
|
|
|
protected override Drawable[] CreateUniqueContent(UserStatistics item) => new Drawable[]
|
|
{
|
|
new RowText
|
|
{
|
|
Text = $@"{item.PP:N0}",
|
|
}
|
|
};
|
|
}
|
|
}
|