mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Move cursor construction to BDL
This commit is contained in:
parent
2c98ba1c0c
commit
a73e3d9700
@ -56,10 +56,6 @@ namespace osu.Game.Rulesets.UI
|
|||||||
RelativeSizeAxes = Axes.Both;
|
RelativeSizeAxes = Axes.Both;
|
||||||
|
|
||||||
hitObjectContainerLazy = new Lazy<HitObjectContainer>(CreateHitObjectContainer);
|
hitObjectContainerLazy = new Lazy<HitObjectContainer>(CreateHitObjectContainer);
|
||||||
|
|
||||||
Cursor = CreateCursor();
|
|
||||||
if (Cursor != null)
|
|
||||||
CursorTargetContainer.Add(Cursor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private WorkingBeatmap beatmap;
|
private WorkingBeatmap beatmap;
|
||||||
@ -68,6 +64,10 @@ namespace osu.Game.Rulesets.UI
|
|||||||
private void load(IBindable<WorkingBeatmap> beatmap)
|
private void load(IBindable<WorkingBeatmap> beatmap)
|
||||||
{
|
{
|
||||||
this.beatmap = beatmap.Value;
|
this.beatmap = beatmap.Value;
|
||||||
|
|
||||||
|
Cursor = CreateCursor();
|
||||||
|
if (Cursor != null)
|
||||||
|
CursorTargetContainer.Add(Cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user