mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Remove unnecessary CursorTargetContainer
This commit is contained in:
parent
9588944048
commit
06d4856e17
@ -67,7 +67,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
Cursor = CreateCursor();
|
||||
if (Cursor != null)
|
||||
CursorTargetContainer.Add(Cursor);
|
||||
AddInternal(Cursor);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -99,11 +99,6 @@ namespace osu.Game.Rulesets.UI
|
||||
/// <returns>The cursor, or null if a cursor is not rqeuired.</returns>
|
||||
protected virtual CursorContainer CreateCursor() => null;
|
||||
|
||||
/// <summary>
|
||||
/// The target container to add the cursor after it is created.
|
||||
/// </summary>
|
||||
protected virtual Container CursorTargetContainer => null;
|
||||
|
||||
/// <summary>
|
||||
/// Registers a <see cref="Playfield"/> as a nested <see cref="Playfield"/>.
|
||||
/// This does not add the <see cref="Playfield"/> to the draw hierarchy.
|
||||
|
Loading…
Reference in New Issue
Block a user