mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Use .With() wherever possible
This commit is contained in:
parent
c145ce2d00
commit
12b6bc48bd
@ -101,11 +101,10 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
VisibleState = ButtonSystemState.Play,
|
||||
},
|
||||
logoTrackingContainer.LogoFacade
|
||||
logoTrackingContainer.LogoFacade.With(d => d.Scale = new Vector2(0.74f))
|
||||
});
|
||||
|
||||
buttonArea.Flow.CentreTarget = logoTrackingContainer.LogoFacade;
|
||||
logoTrackingContainer.LogoFacade.Scale = new Vector2(0.74f);
|
||||
}
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
|
@ -351,9 +351,6 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
var metadata = beatmap.BeatmapInfo?.Metadata ?? new BeatmapMetadata();
|
||||
|
||||
facade.Anchor = Anchor.TopCentre;
|
||||
facade.Origin = Anchor.TopCentre;
|
||||
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Children = new Drawable[]
|
||||
{
|
||||
@ -365,7 +362,11 @@ namespace osu.Game.Screens.Play
|
||||
Direction = FillDirection.Vertical,
|
||||
Children = new[]
|
||||
{
|
||||
facade,
|
||||
facade.With(d =>
|
||||
{
|
||||
d.Anchor = Anchor.TopCentre;
|
||||
d.Origin = Anchor.TopCentre;
|
||||
}),
|
||||
new OsuSpriteText
|
||||
{
|
||||
Text = new LocalisedString((metadata.TitleUnicode, metadata.Title)),
|
||||
|
Loading…
Reference in New Issue
Block a user