mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 22:07:25 +08:00
Only display offset toast when in local gameplay
This commit is contained in:
parent
ed89f6474b
commit
2a2a4c416e
@ -461,12 +461,6 @@ namespace osu.Game.Screens.Play
|
|||||||
OnRetry = () => Restart(),
|
OnRetry = () => Restart(),
|
||||||
OnQuit = () => PerformExit(true),
|
OnQuit = () => PerformExit(true),
|
||||||
},
|
},
|
||||||
new GameplayOffsetControl
|
|
||||||
{
|
|
||||||
Margin = new MarginPadding(20),
|
|
||||||
Anchor = Anchor.CentreRight,
|
|
||||||
Origin = Anchor.CentreRight,
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ using System.Linq;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
@ -59,6 +60,15 @@ namespace osu.Game.Screens.Play
|
|||||||
}
|
}
|
||||||
|
|
||||||
AddInternal(new PlayerTouchInputDetector());
|
AddInternal(new PlayerTouchInputDetector());
|
||||||
|
|
||||||
|
// We probably want to move this display to something more global.
|
||||||
|
// Probably using the OSD somehow.
|
||||||
|
AddInternal(new GameplayOffsetControl
|
||||||
|
{
|
||||||
|
Margin = new MarginPadding(20),
|
||||||
|
Anchor = Anchor.CentreRight,
|
||||||
|
Origin = Anchor.CentreRight,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GameplayClockContainer CreateGameplayClockContainer(WorkingBeatmap beatmap, double gameplayStart) => new MasterGameplayClockContainer(beatmap, gameplayStart)
|
protected override GameplayClockContainer CreateGameplayClockContainer(WorkingBeatmap beatmap, double gameplayStart) => new MasterGameplayClockContainer(beatmap, gameplayStart)
|
||||||
|
Loading…
Reference in New Issue
Block a user