Remove default invisible cursor container from rulesets

This commit is contained in:
Salman Ahmed 2022-10-12 17:50:47 +03:00
parent a44cfe2901
commit 7a6ecaff0d

View File

@ -211,7 +211,7 @@ namespace osu.Game.Rulesets.UI
/// The default provided cursor is invisible when inside the bounds of the <see cref="Playfield"/>. /// The default provided cursor is invisible when inside the bounds of the <see cref="Playfield"/>.
/// </remarks> /// </remarks>
/// <returns>The cursor, or null to show the menu cursor.</returns> /// <returns>The cursor, or null to show the menu cursor.</returns>
protected virtual GameplayCursorContainer CreateCursor() => new InvisibleCursorContainer(); protected virtual GameplayCursorContainer CreateCursor() => null;
/// <summary> /// <summary>
/// Registers a <see cref="Playfield"/> as a nested <see cref="Playfield"/>. /// Registers a <see cref="Playfield"/> as a nested <see cref="Playfield"/>.
@ -522,14 +522,5 @@ namespace osu.Game.Rulesets.UI
} }
#endregion #endregion
public class InvisibleCursorContainer : GameplayCursorContainer
{
protected override Drawable CreateCursor() => new InvisibleCursor();
private class InvisibleCursor : Drawable
{
}
}
} }
} }