mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +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;
|
scores = value;
|
||||||
|
|
||||||
int i = 0;
|
int i = 150;
|
||||||
if (scores == null)
|
if (scores == null)
|
||||||
{
|
{
|
||||||
foreach (var c in scrollFlow.Children)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user