mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 12:32:58 +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,
|
VisibleState = ButtonSystemState.Play,
|
||||||
},
|
},
|
||||||
logoTrackingContainer.LogoFacade
|
logoTrackingContainer.LogoFacade.With(d => d.Scale = new Vector2(0.74f))
|
||||||
});
|
});
|
||||||
|
|
||||||
buttonArea.Flow.CentreTarget = logoTrackingContainer.LogoFacade;
|
buttonArea.Flow.CentreTarget = logoTrackingContainer.LogoFacade;
|
||||||
logoTrackingContainer.LogoFacade.Scale = new Vector2(0.74f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
|
@ -351,9 +351,6 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
var metadata = beatmap.BeatmapInfo?.Metadata ?? new BeatmapMetadata();
|
var metadata = beatmap.BeatmapInfo?.Metadata ?? new BeatmapMetadata();
|
||||||
|
|
||||||
facade.Anchor = Anchor.TopCentre;
|
|
||||||
facade.Origin = Anchor.TopCentre;
|
|
||||||
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -365,7 +362,11 @@ namespace osu.Game.Screens.Play
|
|||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
facade,
|
facade.With(d =>
|
||||||
|
{
|
||||||
|
d.Anchor = Anchor.TopCentre;
|
||||||
|
d.Origin = Anchor.TopCentre;
|
||||||
|
}),
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = new LocalisedString((metadata.TitleUnicode, metadata.Title)),
|
Text = new LocalisedString((metadata.TitleUnicode, metadata.Title)),
|
||||||
|
Loading…
Reference in New Issue
Block a user