mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Rename {-> Drawable}SimpleStatisticRow
This commit is contained in:
parent
bbb3d7522e
commit
f5e52c80b4
@ -13,7 +13,7 @@ using osu.Game.Screens.Ranking.Statistics;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Ranking
|
||||
{
|
||||
public class TestSceneSimpleStatisticRow : OsuTestScene
|
||||
public class TestSceneDrawableSimpleStatisticRow : OsuTestScene
|
||||
{
|
||||
private Container container;
|
||||
|
||||
@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
public void TestEmpty()
|
||||
{
|
||||
AddStep("create with no items",
|
||||
() => container.Add(new SimpleStatisticRow(2, Enumerable.Empty<SimpleStatisticItem>())));
|
||||
() => container.Add(new DrawableSimpleStatisticRow(2, Enumerable.Empty<SimpleStatisticItem>())));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -61,7 +61,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
Value = RNG.Next(100)
|
||||
});
|
||||
|
||||
container.Add(new SimpleStatisticRow(columnCount, items));
|
||||
container.Add(new DrawableSimpleStatisticRow(columnCount, items));
|
||||
});
|
||||
}
|
||||
}
|
@ -16,7 +16,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
/// Represents a statistic row with simple statistics (ones that only need textual display).
|
||||
/// Richer visualisations should be done with <see cref="StatisticRow"/>s and <see cref="StatisticItem"/>s.
|
||||
/// </summary>
|
||||
public class SimpleStatisticRow : CompositeDrawable
|
||||
public class DrawableSimpleStatisticRow : CompositeDrawable
|
||||
{
|
||||
private readonly SimpleStatisticItem[] items;
|
||||
private readonly int columnCount;
|
||||
@ -28,7 +28,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
/// </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 SimpleStatisticRow(int columnCount, IEnumerable<SimpleStatisticItem> items)
|
||||
public DrawableSimpleStatisticRow(int columnCount, IEnumerable<SimpleStatisticItem> items)
|
||||
{
|
||||
if (columnCount < 1)
|
||||
throw new ArgumentOutOfRangeException(nameof(columnCount));
|
Loading…
Reference in New Issue
Block a user