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:
parent
7d428875b8
commit
18b0b77f0a
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 = @" - ";
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user