mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Only update positions when the medalContainer is loaded.
This commit is contained in:
@ -108,6 +108,12 @@ namespace osu.Game.Overlays.MedalSplash
|
|||||||
s.Origin = Anchor.TopCentre;
|
s.Origin = Anchor.TopCentre;
|
||||||
s.TextSize = 16;
|
s.TextSize = 16;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
medalContainer.OnLoadComplete = d =>
|
||||||
|
{
|
||||||
|
unlocked.Position = new Vector2(0f, medalContainer.DrawSize.Y / 2 + 10);
|
||||||
|
infoFlow.Position = new Vector2(0f, unlocked.Position.Y + 90);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -123,9 +129,6 @@ namespace osu.Game.Overlays.MedalSplash
|
|||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
updateState();
|
updateState();
|
||||||
|
|
||||||
unlocked.Position = new Vector2(0f, medalContainer.DrawSize.Y / 2 + 10);
|
|
||||||
infoFlow.Position = new Vector2(0f, unlocked.Position.Y + 90);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public DisplayState State
|
public DisplayState State
|
||||||
|
Reference in New Issue
Block a user