Move cursor construction to BDL

This commit is contained in:
Dean Herbert 2019-03-08 15:01:45 +09:00
parent 2c98ba1c0c
commit a73e3d9700
1 changed files with 4 additions and 4 deletions

View File

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