Apply further refactoring to star rating display UX-wise

This commit is contained in:
Salman Ahmed
2021-05-08 21:13:18 +03:00
parent 655e8d3d86
commit c52f1733be
2 changed files with 77 additions and 35 deletions

View File

@ -178,11 +178,7 @@ namespace osu.Game.Screens.Play
};
starDifficulty = difficultyCache.GetBindableDifficulty(beatmap.BeatmapInfo);
starDifficulty.BindValueChanged(difficulty =>
{
if (difficulty.NewValue.HasValue)
starRatingDisplay.Current.Value = difficulty.NewValue.Value;
}, true);
starDifficulty.BindValueChanged(d => starRatingDisplay.Current.Value = d.NewValue, true);
Loading = true;
}