mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Move medal loading to LoadComplete
This commit is contained in:
parent
0a9d14826c
commit
9fb29cc7a7
@ -154,19 +154,22 @@ namespace osu.Game.Overlays
|
||||
Colour = colours.Blue.Opacity(0.5f),
|
||||
Radius = 50,
|
||||
};
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
LoadComponentAsync(drawableMedal = new DrawableMedal(medal)
|
||||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
}, disc.Add);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
Show();
|
||||
}, loaded =>
|
||||
{
|
||||
disc.Add(loaded);
|
||||
Show();
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
Loading…
Reference in New Issue
Block a user