1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

hide cursor in catch

This commit is contained in:
Dylan Nantz 2022-12-12 21:18:01 -05:00
parent 5800734589
commit 0dd4e0cf94
2 changed files with 3 additions and 9 deletions

View File

@ -6,9 +6,9 @@ using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Catch.UI
{
public partial class CatchRelaxCursorContainer : GameplayCursorContainer
public partial class CatchCursorContainer : GameplayCursorContainer
{
// Just hide the cursor in relax.
// Just hide the cursor.
// The main goal here is to show that we have a cursor so the game never shows the global one.
protected override Drawable CreateCursor() => Empty();
}

View File

@ -52,13 +52,7 @@ namespace osu.Game.Rulesets.Catch.UI
this.difficulty = difficulty;
}
protected override GameplayCursorContainer CreateCursor()
{
if (Mods != null && Mods.Any(m => m is ModRelax))
return new CatchRelaxCursorContainer();
return base.CreateCursor();
}
protected override GameplayCursorContainer CreateCursor() => new CatchCursorContainer();
[BackgroundDependencyLoader]
private void load()