mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Merge pull request #18768 from smoogipoo/spectator-reset-speed-at-end
Reset spectator speed after the last frame is reached
This commit is contained in:
@ -45,6 +45,20 @@ namespace osu.Game.Screens.Play
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
DrawableRuleset.FrameStableClock.WaitingOnFrames.BindValueChanged(waiting =>
|
||||||
|
{
|
||||||
|
if (GameplayClockContainer is MasterGameplayClockContainer master)
|
||||||
|
{
|
||||||
|
if (master.UserPlaybackRate.Value > 1 && waiting.NewValue)
|
||||||
|
master.UserPlaybackRate.Value = 1;
|
||||||
|
}
|
||||||
|
}, true);
|
||||||
|
}
|
||||||
|
|
||||||
protected override void StartGameplay()
|
protected override void StartGameplay()
|
||||||
{
|
{
|
||||||
base.StartGameplay();
|
base.StartGameplay();
|
||||||
|
Reference in New Issue
Block a user