mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Merge pull request #26543 from peppy/offset-toast-limit
Only display offset toast when in local gameplay
This commit is contained in:
commit
c5a276a7de
@ -461,12 +461,6 @@ namespace osu.Game.Screens.Play
|
||||
OnRetry = () => Restart(),
|
||||
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 JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Beatmaps;
|
||||
@ -59,6 +60,15 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user