Rewrite the way that cursor overrides are done game-wide

This commit is contained in:
smoogipoo
2018-01-12 18:13:17 +09:00
parent 2e235660ad
commit 512e4d2c9f
15 changed files with 132 additions and 60 deletions

View File

@ -9,10 +9,12 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using OpenTK;
using OpenTK.Graphics;
using osu.Game.Graphics.Cursor;
using osu.Framework.Graphics.Cursor;
namespace osu.Game.Screens.Menu
{
public class Disclaimer : OsuScreen
public class Disclaimer : OsuScreen, IProvideLocalCursor
{
private Intro intro;
private readonly SpriteIcon icon;
@ -20,7 +22,8 @@ namespace osu.Game.Screens.Menu
public override bool ShowOverlaysOnEnter => false;
public override bool HasLocalCursorDisplayed => true;
public CursorContainer LocalCursor => null;
public bool ProvidesUserCursor => true;
public Disclaimer()
{