Fix usages of OnLoadComplete

This commit is contained in:
Dean Herbert
2019-03-17 13:43:23 +09:00
parent 8c6caf0b18
commit c496f6e56b
12 changed files with 49 additions and 23 deletions

View File

@ -52,12 +52,18 @@ namespace osu.Game.Screens.Multi.Match.Components
Participants.BindValueChanged(participants =>
{
usersFlow.Children = participants.NewValue.Select(u => new UserPanel(u)
usersFlow.Children = participants.NewValue.Select(u =>
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Width = 300,
OnLoadComplete = d => d.FadeInFromZero(60),
var panel = new UserPanel(u)
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Width = 300,
};
panel.OnLoadComplete += d => d.FadeInFromZero(60);
return panel;
}).ToList();
}, true);
}