Rename {-> Drawable}SimpleStatisticRow

This commit is contained in:
Bartłomiej Dach
2020-08-26 19:25:59 +02:00
parent bbb3d7522e
commit f5e52c80b4
2 changed files with 5 additions and 5 deletions

View File

@ -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));
}); });
} }
} }

View File

@ -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));