Apply review suggestions.

This commit is contained in:
Lucas A 2021-08-20 09:47:23 +02:00
parent 0a1c9a6c05
commit 9b4c806855
1 changed files with 21 additions and 6 deletions

View File

@ -81,10 +81,26 @@ public BasicStats()
Direction = FillDirection.Horizontal,
Children = new[]
{
length = new Statistic(BeatmapStatisticsIconType.Length, BeatmapsetsStrings.ShowStatsTotalLength(string.Empty)) { Width = 0.25f },
bpm = new Statistic(BeatmapStatisticsIconType.Bpm, BeatmapsetsStrings.ShowStatsBpm) { Width = 0.25f },
circleCount = new Statistic(BeatmapStatisticsIconType.Circles, BeatmapsetsStrings.ShowStatsCountCircles) { Width = 0.25f },
sliderCount = new Statistic(BeatmapStatisticsIconType.Sliders, BeatmapsetsStrings.ShowStatsCountSliders) { Width = 0.25f },
length = new Statistic(BeatmapStatisticsIconType.Length)
{
Width = 0.25f,
TooltipText = default,
},
bpm = new Statistic(BeatmapStatisticsIconType.Bpm)
{
Width = 0.25f,
TooltipText = BeatmapsetsStrings.ShowStatsBpm
},
circleCount = new Statistic(BeatmapStatisticsIconType.Circles)
{
Width = 0.25f,
TooltipText = BeatmapsetsStrings.ShowStatsCountCircles
},
sliderCount = new Statistic(BeatmapStatisticsIconType.Sliders)
{
Width = 0.25f,
TooltipText = BeatmapsetsStrings.ShowStatsCountSliders
},
},
};
}
@ -107,9 +123,8 @@ public LocalisableString Value
set => this.value.Text = value;
}
public Statistic(BeatmapStatisticsIconType icon, LocalisableString name)
public Statistic(BeatmapStatisticsIconType icon)
{
TooltipText = name;
RelativeSizeAxes = Axes.X;
Height = 24f;