1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Switched over to the new LoadWrapper class for all delayed loading.

This commit is contained in:
FreezyLemon 2017-11-21 16:17:33 +01:00
parent a033eb46d3
commit 870807c265
5 changed files with 7 additions and 7 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Beatmaps.Drawables
Children = new Drawable[]
{
new DelayedLoadWrapper(
new LoadWrapper(
new PanelBackground(beatmap)
{
RelativeSizeAxes = Axes.Both,
@ -185,4 +185,4 @@ namespace osu.Game.Beatmaps.Drawables
}
}
}
}
}

View File

@ -31,7 +31,7 @@ namespace osu.Game.Overlays.BeatmapSet
private readonly AuthorInfo author;
public Details Details;
private DelayedLoadWrapper cover;
private LoadWrapper cover;
public readonly BeatmapPicker Picker;
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.BeatmapSet
videoButtons.FadeTo(BeatmapSet.OnlineInfo.HasVideo ? 1 : 0, transition_duration);
cover?.FadeOut(400, Easing.Out);
coverContainer.Add(cover = new DelayedLoadWrapper(new BeatmapSetCover(BeatmapSet)
coverContainer.Add(cover = new LoadWrapper(new BeatmapSetCover(BeatmapSet)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

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

View File

@ -99,7 +99,7 @@ namespace osu.Game.Screens.Select.Leaderboards
Padding = new MarginPadding(edge_margin),
Children = new Drawable[]
{
avatar = new DelayedLoadWrapper(
avatar = new LoadWrapper(
new Avatar(Score.User)
{
RelativeSizeAxes = Axes.Both,

View File

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