Fix player loader not accepting star difficulty updates after display

This commit is contained in:
Salman Ahmed
2022-07-02 09:17:38 +03:00
parent b611540bf3
commit 19d300e311

View File

@ -197,21 +197,19 @@ namespace osu.Game.Screens.Play
starRatingDisplay.Show(); starRatingDisplay.Show();
} }
else else
{
starRatingDisplay.Hide(); starRatingDisplay.Hide();
starDifficulty.ValueChanged += d => starDifficulty.ValueChanged += d =>
{ {
Debug.Assert(d.NewValue != null); Debug.Assert(d.NewValue != null);
starRatingDisplay.Current.Value = d.NewValue.Value; starRatingDisplay.Current.Value = d.NewValue.Value;
versionFlow.AutoSizeDuration = 300; versionFlow.AutoSizeDuration = 300;
versionFlow.AutoSizeEasing = Easing.OutQuint; versionFlow.AutoSizeEasing = Easing.OutQuint;
starRatingDisplay.FadeIn(300, Easing.InQuint); starRatingDisplay.FadeIn(300, Easing.InQuint);
}; };
}
} }
private class MetadataLineLabel : OsuSpriteText private class MetadataLineLabel : OsuSpriteText