mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:52:55 +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;
|
||||
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user