mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Merge branch 'master' into dont-confine-skins
This commit is contained in:
commit
299daa26da
@ -168,7 +168,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
difficultyName.Text = beatmap.Version;
|
difficultyName.Text = beatmap.Version;
|
||||||
starRating.Text = $"{beatmap.StarDifficulty:0.##}";
|
starRating.Text = $"{beatmap.StarDifficulty:0.##}";
|
||||||
difficultyFlow.Colour = colours.ForDifficultyRating(beatmap.DifficultyRating);
|
difficultyFlow.Colour = colours.ForDifficultyRating(beatmap.DifficultyRating, true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Graphics
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Color4 ForDifficultyRating(DifficultyRating difficulty)
|
public Color4 ForDifficultyRating(DifficultyRating difficulty, bool useLighterColour = false)
|
||||||
{
|
{
|
||||||
switch (difficulty)
|
switch (difficulty)
|
||||||
{
|
{
|
||||||
@ -56,10 +56,10 @@ namespace osu.Game.Graphics
|
|||||||
return Pink;
|
return Pink;
|
||||||
|
|
||||||
case DifficultyRating.Expert:
|
case DifficultyRating.Expert:
|
||||||
return Purple;
|
return useLighterColour ? PurpleLight : Purple;
|
||||||
|
|
||||||
case DifficultyRating.ExpertPlus:
|
case DifficultyRating.ExpertPlus:
|
||||||
return Gray0;
|
return useLighterColour ? Gray9 : Gray0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user