1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Add correct lifetime expiry for leaderboard content

This commit is contained in:
Dean Herbert 2017-03-22 09:07:02 +09:00
parent 7387dbd9fc
commit f3486b7288
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -27,11 +27,15 @@ namespace osu.Game.Screens.Select.Leaderboards
{
scores = value;
int i = 0;
int i = 150;
if (scores == null)
{
foreach (var c in scrollFlow.Children)
c.FadeOut(150 + i++ * 10);
c.FadeOut(i += 10);
foreach (var c in scrollFlow.Children)
c.LifetimeEnd = Time.Current + i;
return;
}