1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:47:29 +08:00

Added requested changes. Mainly changing lambdas to direct function references.

This commit is contained in:
FreezyLemon 2017-11-22 21:41:50 +01:00
parent 7d428875b8
commit 18b0b77f0a
4 changed files with 10 additions and 11 deletions

View File

@ -322,13 +322,10 @@ namespace osu.Game.Overlays.Profile
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
FillMode = FillMode.Fill,
OnLoadComplete = d => d.FadeInFromZero(200)
OnLoadComplete = d => d.FadeInFromZero(200),
Depth = float.MaxValue,
},
ucb =>
{
ucb.Depth = float.MaxValue;
coverContainer.Add(ucb);
});
coverContainer.Add);
if (user.IsSupporter) supporterTag.Show();

View File

@ -237,7 +237,7 @@ namespace osu.Game.Screens.Multiplayer
FillMode = FillMode.Fill,
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out),
},
bsc => coverContainer.Add(bsc));
coverContainer.Add);
beatmapTitle.Current = localisation.GetUnicodePreference(value.Metadata.TitleUnicode, value.Metadata.Title);
beatmapDash.Text = @" - ";
@ -260,4 +260,4 @@ namespace osu.Game.Screens.Multiplayer
participantInfo.Participants = value;
}
}
}
}

View File

@ -338,7 +338,7 @@ namespace osu.Game.Screens.Multiplayer
FillMode = FillMode.Fill,
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out),
},
bsc => coverContainer.Add(bsc));
coverContainer.Add);
beatmapTitle.Current = localisation.GetUnicodePreference(value.Metadata.TitleUnicode, value.Metadata.Title);
beatmapDash.Text = @" - ";

View File

@ -248,8 +248,10 @@ namespace osu.Game.Screens.Play
storyboard = beatmap.Storyboard.CreateDrawable(Beatmap.Value);
storyboard.Masking = true;
if (asyncLoad) LoadComponentAsync(storyboard, s => storyboardContainer.Add(s));
else storyboardContainer.Add((Drawable)storyboard);
if (asyncLoad)
LoadComponentAsync(storyboard, storyboardContainer.Add);
else
storyboardContainer.Add(storyboard);
}
public void Restart()