Add back cursor proxying

This commit is contained in:
Dean Herbert 2019-03-06 17:44:58 +09:00
parent 62716851a1
commit ffe53411f6

View File

@ -176,7 +176,7 @@ namespace osu.Game.Screens.Play
OnRetry = restart, OnRetry = restart,
OnQuit = performUserRequestedExit, OnQuit = performUserRequestedExit,
CheckCanPause = () => AllowPause && ValidForResume && !HasFailed && !RulesetContainer.HasReplayLoaded.Value, CheckCanPause = () => AllowPause && ValidForResume && !HasFailed && !RulesetContainer.HasReplayLoaded.Value,
Children = new Container[] Children = new[]
{ {
StoryboardContainer = CreateStoryboardContainer(), StoryboardContainer = CreateStoryboardContainer(),
new ScalingContainer(ScalingMode.Gameplay) new ScalingContainer(ScalingMode.Gameplay)
@ -193,6 +193,8 @@ namespace osu.Game.Screens.Play
Origin = Anchor.Centre, Origin = Anchor.Centre,
Breaks = beatmap.Breaks Breaks = beatmap.Breaks
}, },
// display the cursor above some HUD elements.
RulesetContainer.Cursor?.CreateProxy() ?? new Container(),
HUDOverlay = new HUDOverlay(ScoreProcessor, RulesetContainer, working, adjustableClock) HUDOverlay = new HUDOverlay(ScoreProcessor, RulesetContainer, working, adjustableClock)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,