1
0
mirror of https://github.com/ppy/osu.git synced 2024-06-09 01:27:19 +08:00

Apply NRT to SimpleStatisticTable

This commit is contained in:
Bartłomiej Dach 2024-05-14 13:10:36 +02:00
parent 237ae8b46a
commit 8e16b57d09
No known key found for this signature in database

View File

@ -1,12 +1,9 @@
// 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.
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
@ -24,14 +21,14 @@ namespace osu.Game.Screens.Ranking.Statistics
private readonly SimpleStatisticItem[] items;
private readonly int columnCount;
private FillFlowContainer[] columns;
private FillFlowContainer[] columns = null!;
/// <summary>
/// Creates a statistic row for the supplied <see cref="SimpleStatisticItem"/>s.
/// </summary>
/// <param name="columnCount">The number of columns to layout the <paramref name="items"/> into.</param>
/// <param name="items">The <see cref="SimpleStatisticItem"/>s to display in this row.</param>
public SimpleStatisticTable(int columnCount, [ItemNotNull] IEnumerable<SimpleStatisticItem> items)
public SimpleStatisticTable(int columnCount, IEnumerable<SimpleStatisticItem> items)
{
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(columnCount);