Add fade to prevent jarring transitions

This commit is contained in:
Bartłomiej Dach 2020-08-26 22:34:02 +02:00
parent c3197da3da
commit f8042e6fd3

View File

@ -94,6 +94,7 @@ namespace osu.Game.Screens.Ranking.Statistics
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Spacing = new Vector2(30, 15), Spacing = new Vector2(30, 15),
Alpha = 0
}; };
rows.AddRange(newScore.Ruleset.CreateInstance() rows.AddRange(newScore.Ruleset.CreateInstance()
@ -111,6 +112,7 @@ namespace osu.Game.Screens.Ranking.Statistics
spinner.Hide(); spinner.Hide();
content.Add(d); content.Add(d);
d.FadeIn(250, Easing.OutQuint);
}, localCancellationSource.Token); }, localCancellationSource.Token);
}), localCancellationSource.Token); }), localCancellationSource.Token);
} }