mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Use auto property.
This commit is contained in:
@ -91,10 +91,9 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
|
||||
private class Statistic : Container, IHasTooltip
|
||||
{
|
||||
private readonly string name;
|
||||
private readonly OsuSpriteText value;
|
||||
|
||||
public string TooltipText => name;
|
||||
public string TooltipText { get; }
|
||||
|
||||
public string Value
|
||||
{
|
||||
@ -104,7 +103,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
|
||||
public Statistic(IconUsage icon, string name)
|
||||
{
|
||||
this.name = name;
|
||||
TooltipText = name;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
|
||||
|
Reference in New Issue
Block a user