mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 01:07:25 +08:00
Add fade out of previously displayed scores.
This commit is contained in:
parent
78efecb89d
commit
4f95378f27
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user