mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 23:22:54 +08:00
add invisible cursor for ctb
This commit is contained in:
parent
b87478f6e2
commit
b3a95cac84
14
osu.Game.Rulesets.Catch/UI/CatchCursorContainer.cs
Normal file
14
osu.Game.Rulesets.Catch/UI/CatchCursorContainer.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Game.Rulesets.UI;
|
||||||
|
|
||||||
|
namespace osu.Game.Rulesets.Catch.UI {
|
||||||
|
class CatchCursorContainer : GameplayCursorContainer
|
||||||
|
{
|
||||||
|
protected override Drawable CreateCursor() => new InvisibleCursor();
|
||||||
|
|
||||||
|
private class InvisibleCursor : Drawable
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -9,6 +9,7 @@ using osu.Game.Rulesets.Catch.Objects;
|
|||||||
using osu.Game.Rulesets.Catch.Objects.Drawable;
|
using osu.Game.Rulesets.Catch.Objects.Drawable;
|
||||||
using osu.Game.Rulesets.Judgements;
|
using osu.Game.Rulesets.Judgements;
|
||||||
using osu.Game.Rulesets.Objects.Drawables;
|
using osu.Game.Rulesets.Objects.Drawables;
|
||||||
|
using osu.Game.Rulesets.UI;
|
||||||
using osu.Game.Rulesets.UI.Scrolling;
|
using osu.Game.Rulesets.UI.Scrolling;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Catch.UI
|
namespace osu.Game.Rulesets.Catch.UI
|
||||||
@ -19,6 +20,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
|
|
||||||
internal readonly CatcherArea CatcherArea;
|
internal readonly CatcherArea CatcherArea;
|
||||||
|
|
||||||
|
protected override GameplayCursorContainer CreateCursor() => new CatchCursorContainer();
|
||||||
|
|
||||||
public CatchPlayfield(BeatmapDifficulty difficulty, Func<CatchHitObject, DrawableHitObject<CatchHitObject>> createDrawableRepresentation)
|
public CatchPlayfield(BeatmapDifficulty difficulty, Func<CatchHitObject, DrawableHitObject<CatchHitObject>> createDrawableRepresentation)
|
||||||
{
|
{
|
||||||
Container explodingFruitContainer;
|
Container explodingFruitContainer;
|
||||||
|
Loading…
Reference in New Issue
Block a user