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:
parent
a033eb46d3
commit
870807c265
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user