// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using JetBrains.Annotations; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; namespace osu.Game.Screens.Ranking.Statistics { /// /// Contains textual statistic data to display in a . /// public class SimpleStatisticRow { /// /// The number of columns to layout the in. /// public int Columns { get; set; } /// /// The s that this row should contain. /// [ItemNotNull] public SimpleStatisticItem[] Items { get; set; } public Drawable CreateDrawableStatisticRow() => new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Padding = new MarginPadding(20), Child = new DrawableSimpleStatisticRow(Columns, Items) }; } }