1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 18:03:11 +08:00

Small fixes and style corrections

This commit is contained in:
FreezyLemon 2017-11-21 19:16:44 +01:00
parent fd7ac9b6fc
commit 2203a84300
5 changed files with 33 additions and 36 deletions

View File

@ -52,7 +52,8 @@ namespace osu.Game.Overlays.BeatmapSet
videoButtons.FadeTo(BeatmapSet.OnlineInfo.HasVideo ? 1 : 0, transition_duration); videoButtons.FadeTo(BeatmapSet.OnlineInfo.HasVideo ? 1 : 0, transition_duration);
cover?.FadeOut(400, Easing.Out); cover?.FadeOut(400, Easing.Out);
coverContainer.Add(cover = new LoadWrapper(new BeatmapSetCover(BeatmapSet) coverContainer.Add(cover = new LoadWrapper(
new BeatmapSetCover(BeatmapSet)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,

View File

@ -219,7 +219,8 @@ namespace osu.Game.Overlays.Direct
return icons; return icons;
} }
protected Drawable CreateBackground() => new LoadWrapper(new BeatmapSetCover(SetInfo) protected Drawable CreateBackground() => new LoadWrapper(
new BeatmapSetCover(SetInfo)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,

View File

@ -229,6 +229,7 @@ namespace osu.Game.Screens.Multiplayer
{ {
coverContainer.FadeIn(transition_duration); coverContainer.FadeIn(transition_duration);
LoadComponentAsync(new BeatmapSetCover(value.BeatmapSet) LoadComponentAsync(new BeatmapSetCover(value.BeatmapSet)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
@ -236,11 +237,7 @@ namespace osu.Game.Screens.Multiplayer
FillMode = FillMode.Fill, FillMode = FillMode.Fill,
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out), OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out),
}, },
bsc => bsc => coverContainer.Add(bsc));
{
bsc.RelativeSizeAxes = Axes.Both;
coverContainer.Add(bsc);
});
beatmapTitle.Current = localisation.GetUnicodePreference(value.Metadata.TitleUnicode, value.Metadata.Title); beatmapTitle.Current = localisation.GetUnicodePreference(value.Metadata.TitleUnicode, value.Metadata.Title);
beatmapDash.Text = @" - "; beatmapDash.Text = @" - ";

View File

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

View File

@ -40,11 +40,13 @@ namespace osu.Game.Users
{ {
displayedAvatar?.FadeOut(300); displayedAvatar?.FadeOut(300);
displayedAvatar?.Expire(); displayedAvatar?.Expire();
Add(displayedAvatar = new LoadWrapper(new Avatar(user) Add(displayedAvatar = new LoadWrapper(
new Avatar(user)
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
OnLoadComplete = d => d.FadeInFromZero(200), OnLoadComplete = d => d.FadeInFromZero(200),
})); })
);
} }
} }
} }