mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:35:10 +08:00
Small fixes and style corrections
This commit is contained in:
parent
fd7ac9b6fc
commit
2203a84300
@ -52,7 +52,8 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
videoButtons.FadeTo(BeatmapSet.OnlineInfo.HasVideo ? 1 : 0, transition_duration);
|
||||
|
||||
cover?.FadeOut(400, Easing.Out);
|
||||
coverContainer.Add(cover = new LoadWrapper(new BeatmapSetCover(BeatmapSet)
|
||||
coverContainer.Add(cover = new LoadWrapper(
|
||||
new BeatmapSetCover(BeatmapSet)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
|
@ -219,7 +219,8 @@ namespace osu.Game.Overlays.Direct
|
||||
return icons;
|
||||
}
|
||||
|
||||
protected Drawable CreateBackground() => new LoadWrapper(new BeatmapSetCover(SetInfo)
|
||||
protected Drawable CreateBackground() => new LoadWrapper(
|
||||
new BeatmapSetCover(SetInfo)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
|
@ -229,6 +229,7 @@ namespace osu.Game.Screens.Multiplayer
|
||||
{
|
||||
coverContainer.FadeIn(transition_duration);
|
||||
|
||||
|
||||
LoadComponentAsync(new BeatmapSetCover(value.BeatmapSet)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
@ -236,11 +237,7 @@ namespace osu.Game.Screens.Multiplayer
|
||||
FillMode = FillMode.Fill,
|
||||
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out),
|
||||
},
|
||||
bsc =>
|
||||
{
|
||||
bsc.RelativeSizeAxes = Axes.Both;
|
||||
coverContainer.Add(bsc);
|
||||
});
|
||||
bsc => coverContainer.Add(bsc));
|
||||
|
||||
beatmapTitle.Current = localisation.GetUnicodePreference(value.Metadata.TitleUnicode, value.Metadata.Title);
|
||||
beatmapDash.Text = @" - ";
|
||||
|
@ -338,11 +338,7 @@ namespace osu.Game.Screens.Multiplayer
|
||||
FillMode = FillMode.Fill,
|
||||
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out),
|
||||
},
|
||||
bsc =>
|
||||
{
|
||||
bsc.RelativeSizeAxes = Axes.Both;
|
||||
coverContainer.Add(bsc);
|
||||
});
|
||||
bsc => coverContainer.Add(bsc));
|
||||
|
||||
beatmapTitle.Current = localisation.GetUnicodePreference(value.Metadata.TitleUnicode, value.Metadata.Title);
|
||||
beatmapDash.Text = @" - ";
|
||||
|
@ -40,11 +40,13 @@ namespace osu.Game.Users
|
||||
{
|
||||
displayedAvatar?.FadeOut(300);
|
||||
displayedAvatar?.Expire();
|
||||
Add(displayedAvatar = new LoadWrapper(new Avatar(user)
|
||||
Add(displayedAvatar = new LoadWrapper(
|
||||
new Avatar(user)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
OnLoadComplete = d => d.FadeInFromZero(200),
|
||||
}));
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user