mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Apply review suggestions.
This commit is contained in:
parent
0a1c9a6c05
commit
9b4c806855
@ -81,10 +81,26 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
length = new Statistic(BeatmapStatisticsIconType.Length, BeatmapsetsStrings.ShowStatsTotalLength(string.Empty)) { Width = 0.25f },
|
length = new Statistic(BeatmapStatisticsIconType.Length)
|
||||||
bpm = new Statistic(BeatmapStatisticsIconType.Bpm, BeatmapsetsStrings.ShowStatsBpm) { Width = 0.25f },
|
{
|
||||||
circleCount = new Statistic(BeatmapStatisticsIconType.Circles, BeatmapsetsStrings.ShowStatsCountCircles) { Width = 0.25f },
|
Width = 0.25f,
|
||||||
sliderCount = new Statistic(BeatmapStatisticsIconType.Sliders, BeatmapsetsStrings.ShowStatsCountSliders) { 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 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
set => this.value.Text = value;
|
set => this.value.Text = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Statistic(BeatmapStatisticsIconType icon, LocalisableString name)
|
public Statistic(BeatmapStatisticsIconType icon)
|
||||||
{
|
{
|
||||||
TooltipText = name;
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
Height = 24f;
|
Height = 24f;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user