1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Merge pull request #18984 from frenzibyte/fix-player-star-difficulty-display

Fix replays showing incorrect star difficulty on load
This commit is contained in:
Dean Herbert 2022-07-02 21:56:27 +09:00 committed by GitHub
commit ca75d5fe1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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