mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
Fix StarRatingDisplay
not handling negative numbers as "pending"
This commit is contained in:
parent
fa1bc0fe0e
commit
6bf2645b1a
@ -29,7 +29,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Spacing = new Vector2(2f),
|
Spacing = new Vector2(2f),
|
||||||
Direction = FillDirection.Horizontal,
|
Direction = FillDirection.Horizontal,
|
||||||
ChildrenEnumerable = Enumerable.Range(0, 15).Select(i => new FillFlowContainer
|
ChildrenEnumerable = Enumerable.Range(-1, 15).Select(i => new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
@ -151,7 +151,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
displayedStars.BindValueChanged(s =>
|
displayedStars.BindValueChanged(s =>
|
||||||
{
|
{
|
||||||
starsText.Text = s.NewValue.ToLocalisableString("0.00");
|
starsText.Text = s.NewValue < 0 ? "-" : s.NewValue.ToLocalisableString("0.00");
|
||||||
|
|
||||||
background.Colour = colours.ForStarDifficulty(s.NewValue);
|
background.Colour = colours.ForStarDifficulty(s.NewValue);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user