1
0
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:
Dean Herbert 2024-01-15 18:17:49 +09:00
parent ed89f6474b
commit 2a2a4c416e
No known key found for this signature in database
2 changed files with 10 additions and 6 deletions

View File

@ -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,
}
}, },
}; };

View File

@ -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)