mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
hide cursor in catch
This commit is contained in:
parent
5800734589
commit
0dd4e0cf94
@ -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();
|
||||
}
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user