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:
parent
7387dbd9fc
commit
f3486b7288
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user