mirror of
https://github.com/ppy/osu
synced 2025-01-11 00:29:30 +00:00
Make StatisticItem.Name not nullable
This commit is contained in:
parent
189a407cb1
commit
9386d352b8
@ -239,7 +239,7 @@ namespace osu.Game.Rulesets.Taiko
|
||||
{
|
||||
Columns = new[]
|
||||
{
|
||||
new StatisticItem(null, () => new SimpleStatisticTable(3, new SimpleStatisticItem[]
|
||||
new StatisticItem(string.Empty, () => new SimpleStatisticTable(3, new SimpleStatisticItem[]
|
||||
{
|
||||
new AverageHitError(timedHitEvents),
|
||||
new UnstableRate(timedHitEvents)
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
/// <summary>
|
||||
/// The name of this item.
|
||||
/// </summary>
|
||||
public readonly LocalisableString? Name;
|
||||
public readonly LocalisableString Name;
|
||||
|
||||
/// <summary>
|
||||
/// A function returning the <see cref="Drawable"/> content to be displayed.
|
||||
@ -49,7 +49,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
||||
/// <param name="createContent">A function returning the <see cref="Drawable"/> content to be displayed.</param>
|
||||
/// <param name="requiresHitEvents">Whether this item requires hit events. If true, <see cref="CreateContent"/> will not be called if no hit events are available.</param>
|
||||
/// <param name="dimension">The <see cref="Dimension"/> of this item. This can be thought of as the column dimension of an encompassing <see cref="GridContainer"/>.</param>
|
||||
public StatisticItem(LocalisableString? name, [NotNull] Func<Drawable> createContent, bool requiresHitEvents = false, [CanBeNull] Dimension dimension = null)
|
||||
public StatisticItem(LocalisableString name, [NotNull] Func<Drawable> createContent, bool requiresHitEvents = false, [CanBeNull] Dimension dimension = null)
|
||||
{
|
||||
Name = name;
|
||||
RequiresHitEvents = requiresHitEvents;
|
||||
|
Loading…
Reference in New Issue
Block a user