1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 05:52:54 +08:00

chore(osu.Game): only the first result should be white at zero position on HitEventTimingDistributionGraph

This commit is contained in:
Acid Chicken (硫酸鶏) 2022-09-05 04:44:27 +09:00
parent 19ab1433c6
commit 7e77c9e8b4
No known key found for this signature in database
GPG Key ID: 3E87B98A3F6BAB99

View File

@ -252,12 +252,12 @@ namespace osu.Game.Screens.Ranking.Statistics
if (values.Any()) if (values.Any())
{ {
boxOriginals = values.Select(v => new Circle boxOriginals = values.Select((v, i) => new Circle
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Anchor = Anchor.BottomCentre, Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre, Origin = Anchor.BottomCentre,
Colour = isCentre ? Color4.White : v.Colour, Colour = isCentre && i == 0 ? Color4.White : v.Colour,
Height = 0, Height = 0,
}).ToArray(); }).ToArray();
InternalChildren = boxOriginals.Reverse().ToArray(); InternalChildren = boxOriginals.Reverse().ToArray();