1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 13:27:20 +08:00

Simplify child definition

This commit is contained in:
Dean Herbert 2018-04-18 11:42:55 +09:00
parent ddd59382e2
commit a827fb51bc

View File

@ -180,12 +180,15 @@ namespace osu.Game.Overlays.Profile.Header
FillMode = FillMode.Fit,
RelativeSizeAxes = Axes.Both,
Texture = textures.Get(badge.ImageUrl),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
OnLoadComplete = d => d.FadeInFromZero(200)
};
}
protected override void LoadComplete()
{
base.LoadComplete();
Child.FadeInFromZero(200);
}
public string TooltipText => badge.Description;
}
}