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