Allow playfield to specify whether it has a cursor or not.

This commit is contained in:
Dean Herbert
2017-04-05 17:38:13 +09:00
parent 4b1588a21d
commit 4aafc172ca
5 changed files with 22 additions and 5 deletions

View File

@ -31,9 +31,7 @@ namespace osu.Game.Screens.Play
internal override bool ShowOverlays => false;
internal override bool HasLocalCursorDisplayed => !hasReplayLoaded && !IsPaused;
private bool hasReplayLoaded => HitRenderer.InputManager.ReplayInputHandler != null;
internal override bool HasLocalCursorDisplayed => !IsPaused && HitRenderer.ProvidingUserCursor;
public BeatmapInfo BeatmapInfo;
@ -305,7 +303,7 @@ namespace osu.Game.Screens.Play
{
if (pauseOverlay == null) return false;
if (hasReplayLoaded)
if (HitRenderer.HasReplayLoaded)
return false;
if (pauseOverlay.State != Visibility.Visible && !canPause) return true;