mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 04:52:53 +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[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new DelayedLoadWrapper(
|
new LoadWrapper(
|
||||||
new PanelBackground(beatmap)
|
new PanelBackground(beatmap)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
private readonly AuthorInfo author;
|
private readonly AuthorInfo author;
|
||||||
public Details Details;
|
public Details Details;
|
||||||
|
|
||||||
private DelayedLoadWrapper cover;
|
private LoadWrapper cover;
|
||||||
|
|
||||||
public readonly BeatmapPicker Picker;
|
public readonly BeatmapPicker Picker;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ 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 DelayedLoadWrapper(new BeatmapSetCover(BeatmapSet)
|
coverContainer.Add(cover = new LoadWrapper(new BeatmapSetCover(BeatmapSet)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
@ -219,7 +219,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
return icons;
|
return icons;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Drawable CreateBackground() => new DelayedLoadWrapper(new BeatmapSetCover(SetInfo)
|
protected Drawable CreateBackground() => new LoadWrapper(new BeatmapSetCover(SetInfo)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
|
@ -99,7 +99,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
Padding = new MarginPadding(edge_margin),
|
Padding = new MarginPadding(edge_margin),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
avatar = new DelayedLoadWrapper(
|
avatar = new LoadWrapper(
|
||||||
new Avatar(Score.User)
|
new Avatar(Score.User)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
@ -40,7 +40,7 @@ namespace osu.Game.Users
|
|||||||
{
|
{
|
||||||
displayedAvatar?.FadeOut(300);
|
displayedAvatar?.FadeOut(300);
|
||||||
displayedAvatar?.Expire();
|
displayedAvatar?.Expire();
|
||||||
Add(displayedAvatar = new DelayedLoadWrapper(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),
|
||||||
|
Loading…
Reference in New Issue
Block a user