1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Move medal loading to LoadComplete

This commit is contained in:
Andrei Zavatski 2020-01-04 18:45:34 +03:00
parent 0a9d14826c
commit 9fb29cc7a7

View File

@ -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()