1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 20:47:25 +08:00

Add fade out of previously displayed scores.

This commit is contained in:
Dean Herbert 2017-03-15 17:10:54 +09:00
parent 78efecb89d
commit 4f95378f27
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -23,12 +23,17 @@ namespace osu.Game.Screens.Select.Leaderboards
{
scores = value;
int i = 0;
if (scores == null)
{
foreach (var c in scrollFlow.Children)
c.FadeOut(150 + i++ * 10);
return;
}
scrollFlow.Clear();
if (scores == null)
return;
int i = 0;
i = 0;
foreach(var s in scores)
{
scrollFlow.Add(new LeaderboardScore(s, 1 + i++)