mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 19:17:20 +08:00
Seek in replay scaled by replay speed
This commit is contained in:
parent
70c81b1b0c
commit
5fc277aa7f
@ -32,6 +32,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private readonly bool replayIsFailedScore;
|
||||
|
||||
private PlaybackSettings playbackSettings;
|
||||
|
||||
protected override UserActivity InitialActivity => new UserActivity.WatchingReplay(Score.ScoreInfo);
|
||||
|
||||
private bool isAutoplayPlayback => GameplayState.Mods.OfType<ModAutoplay>().Any();
|
||||
@ -73,7 +75,7 @@ namespace osu.Game.Screens.Play
|
||||
if (!LoadedBeatmapSuccessfully)
|
||||
return;
|
||||
|
||||
var playbackSettings = new PlaybackSettings
|
||||
playbackSettings = new PlaybackSettings
|
||||
{
|
||||
Depth = float.MaxValue,
|
||||
Expanded = { BindTarget = config.GetBindable<bool>(OsuSetting.ReplayPlaybackControlsExpanded) }
|
||||
@ -124,11 +126,11 @@ namespace osu.Game.Screens.Play
|
||||
return true;
|
||||
|
||||
case GlobalAction.SeekReplayBackward:
|
||||
SeekInDirection(-5);
|
||||
SeekInDirection(-5 * (float)playbackSettings.UserPlaybackRate.Value);
|
||||
return true;
|
||||
|
||||
case GlobalAction.SeekReplayForward:
|
||||
SeekInDirection(5);
|
||||
SeekInDirection(5 * (float)playbackSettings.UserPlaybackRate.Value);
|
||||
return true;
|
||||
|
||||
case GlobalAction.TogglePauseReplay:
|
||||
|
Loading…
x
Reference in New Issue
Block a user