mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 14:37:39 +09:00
Remove default invisible cursor container from rulesets
This commit is contained in:
parent
a44cfe2901
commit
7a6ecaff0d
@ -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
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user