1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 10:07:36 +08:00

Move cursor construction to BDL

This commit is contained in:
Dean Herbert 2019-03-08 15:01:45 +09:00
parent 2c98ba1c0c
commit a73e3d9700

View File

@ -56,10 +56,6 @@ namespace osu.Game.Rulesets.UI
RelativeSizeAxes = Axes.Both;
hitObjectContainerLazy = new Lazy<HitObjectContainer>(CreateHitObjectContainer);
Cursor = CreateCursor();
if (Cursor != null)
CursorTargetContainer.Add(Cursor);
}
private WorkingBeatmap beatmap;
@ -68,6 +64,10 @@ namespace osu.Game.Rulesets.UI
private void load(IBindable<WorkingBeatmap> beatmap)
{
this.beatmap = beatmap.Value;
Cursor = CreateCursor();
if (Cursor != null)
CursorTargetContainer.Add(Cursor);
}
/// <summary>