Make DifficultyIcon support dynamic star rating

This commit is contained in:
smoogipoo
2020-10-01 00:53:25 +09:00
parent 917e8fc3ba
commit fde00d3431
4 changed files with 117 additions and 24 deletions

View File

@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps.Drawables
public class GroupedDifficultyIcon : DifficultyIcon
{
public GroupedDifficultyIcon(List<BeatmapInfo> beatmaps, RulesetInfo ruleset, Color4 counterColour)
: base(beatmaps.OrderBy(b => b.StarDifficulty).Last(), ruleset, false)
: base(beatmaps.OrderBy(b => b.StarDifficulty).Last(), ruleset, null, false)
{
AddInternal(new OsuSpriteText
{