Merge pull request #24080 from peppy/star-rating-no-rounding

Never remove significant digits from star rating displays
This commit is contained in:
Bartłomiej Dach 2023-06-29 21:27:30 +02:00 committed by GitHub
commit 1f3d833b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ private void update()
Children = new Drawable[] Children = new Drawable[]
{ {
new DiffPiece(stats), new DiffPiece(stats),
new DiffPiece(("Star Rating", $"{beatmap.StarRating:0.##}{srExtra}")) new DiffPiece(("Star Rating", $"{beatmap.StarRating:0.00}{srExtra}"))
} }
}, },
new FillFlowContainer new FillFlowContainer

View File

@ -185,7 +185,7 @@ private void updateDisplay()
OnHovered = beatmap => OnHovered = beatmap =>
{ {
showBeatmap(beatmap); showBeatmap(beatmap);
starRating.Text = beatmap.StarRating.ToLocalisableString(@"0.##"); starRating.Text = beatmap.StarRating.ToLocalisableString(@"0.00");
starRatingContainer.FadeIn(100); starRatingContainer.FadeIn(100);
}, },
OnClicked = beatmap => { Beatmap.Value = beatmap; }, OnClicked = beatmap => { Beatmap.Value = beatmap; },