mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:33:21 +08:00
Do not show star difficulty on wedge if zero
This commit is contained in:
parent
4736845318
commit
7d273d631b
@ -223,14 +223,13 @@ namespace osu.Game.Screens.Select
|
||||
Direction = FillDirection.Vertical,
|
||||
Padding = new MarginPadding { Top = 14, Right = shear_width / 2 },
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
Children = new[]
|
||||
{
|
||||
new StarRatingDisplay(beatmapInfo)
|
||||
createStarRatingDisplay(beatmapInfo).With(display =>
|
||||
{
|
||||
Anchor = Anchor.CentreRight,
|
||||
Origin = Anchor.CentreRight,
|
||||
Margin = new MarginPadding { Bottom = 5 }
|
||||
},
|
||||
display.Anchor = Anchor.CentreRight;
|
||||
display.Origin = Anchor.CentreRight;
|
||||
}),
|
||||
StatusPill = new BeatmapSetOnlineStatusPill
|
||||
{
|
||||
Anchor = Anchor.CentreRight,
|
||||
@ -291,6 +290,13 @@ namespace osu.Game.Screens.Select
|
||||
StatusPill.Hide();
|
||||
}
|
||||
|
||||
private static Drawable createStarRatingDisplay(BeatmapInfo beatmapInfo) => beatmapInfo.StarDifficulty > 0
|
||||
? new StarRatingDisplay(beatmapInfo)
|
||||
{
|
||||
Margin = new MarginPadding { Bottom = 5 }
|
||||
}
|
||||
: Empty();
|
||||
|
||||
private void setMetadata(string source)
|
||||
{
|
||||
ArtistLabel.Text = artistBinding.Value;
|
||||
|
Loading…
Reference in New Issue
Block a user