mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Merge pull request #21625 from Mogiiii/catch-disable-cursor
Always hide cursor in osu!catch gameplay
This commit is contained in:
commit
cbd7cae70a
@ -6,9 +6,9 @@ using osu.Game.Rulesets.UI;
|
|||||||
|
|
||||||
namespace osu.Game.Rulesets.Catch.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.
|
// 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();
|
protected override Drawable CreateCursor() => Empty();
|
||||||
}
|
}
|
@ -3,14 +3,12 @@
|
|||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
using System.Linq;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Rulesets.Catch.Objects;
|
using osu.Game.Rulesets.Catch.Objects;
|
||||||
using osu.Game.Rulesets.Catch.Objects.Drawables;
|
using osu.Game.Rulesets.Catch.Objects.Drawables;
|
||||||
using osu.Game.Rulesets.Judgements;
|
using osu.Game.Rulesets.Judgements;
|
||||||
using osu.Game.Rulesets.Mods;
|
|
||||||
using osu.Game.Rulesets.Objects.Drawables;
|
using osu.Game.Rulesets.Objects.Drawables;
|
||||||
using osu.Game.Rulesets.UI;
|
using osu.Game.Rulesets.UI;
|
||||||
using osu.Game.Rulesets.UI.Scrolling;
|
using osu.Game.Rulesets.UI.Scrolling;
|
||||||
@ -52,13 +50,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
this.difficulty = difficulty;
|
this.difficulty = difficulty;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GameplayCursorContainer CreateCursor()
|
protected override GameplayCursorContainer CreateCursor() => new CatchCursorContainer();
|
||||||
{
|
|
||||||
if (Mods != null && Mods.Any(m => m is ModRelax))
|
|
||||||
return new CatchRelaxCursorContainer();
|
|
||||||
|
|
||||||
return base.CreateCursor();
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
|
Loading…
Reference in New Issue
Block a user