mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:23:22 +08: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[]
|
Columns = new[]
|
||||||
{
|
{
|
||||||
new StatisticItem(null, () => new SimpleStatisticTable(3, new SimpleStatisticItem[]
|
new StatisticItem(string.Empty, () => new SimpleStatisticTable(3, new SimpleStatisticItem[]
|
||||||
{
|
{
|
||||||
new AverageHitError(timedHitEvents),
|
new AverageHitError(timedHitEvents),
|
||||||
new UnstableRate(timedHitEvents)
|
new UnstableRate(timedHitEvents)
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Ranking.Statistics
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The name of this item.
|
/// The name of this item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly LocalisableString? Name;
|
public readonly LocalisableString Name;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A function returning the <see cref="Drawable"/> content to be displayed.
|
/// 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="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="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>
|
/// <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;
|
Name = name;
|
||||||
RequiresHitEvents = requiresHitEvents;
|
RequiresHitEvents = requiresHitEvents;
|
||||||
|
Loading…
Reference in New Issue
Block a user