mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Rename {-> Drawable}SimpleStatisticRow
This commit is contained in:
@ -13,7 +13,7 @@ using osu.Game.Screens.Ranking.Statistics;
|
|||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Ranking
|
namespace osu.Game.Tests.Visual.Ranking
|
||||||
{
|
{
|
||||||
public class TestSceneSimpleStatisticRow : OsuTestScene
|
public class TestSceneDrawableSimpleStatisticRow : OsuTestScene
|
||||||
{
|
{
|
||||||
private Container container;
|
private Container container;
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
public void TestEmpty()
|
public void TestEmpty()
|
||||||
{
|
{
|
||||||
AddStep("create with no items",
|
AddStep("create with no items",
|
||||||
() => container.Add(new SimpleStatisticRow(2, Enumerable.Empty<SimpleStatisticItem>())));
|
() => container.Add(new DrawableSimpleStatisticRow(2, Enumerable.Empty<SimpleStatisticItem>())));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -61,7 +61,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
Value = RNG.Next(100)
|
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).
|
/// 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.
|
/// Richer visualisations should be done with <see cref="StatisticRow"/>s and <see cref="StatisticItem"/>s.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SimpleStatisticRow : CompositeDrawable
|
public class DrawableSimpleStatisticRow : CompositeDrawable
|
||||||
{
|
{
|
||||||
private readonly SimpleStatisticItem[] items;
|
private readonly SimpleStatisticItem[] items;
|
||||||
private readonly int columnCount;
|
private readonly int columnCount;
|
||||||
@ -28,7 +28,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="columnCount">The number of columns to layout the <paramref name="items"/> into.</param>
|
/// <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>
|
/// <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)
|
if (columnCount < 1)
|
||||||
throw new ArgumentOutOfRangeException(nameof(columnCount));
|
throw new ArgumentOutOfRangeException(nameof(columnCount));
|
Reference in New Issue
Block a user