1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00

Make PlayerSettingsOverlay's api more stringent

This commit is contained in:
Dean Herbert 2024-01-17 15:13:59 +09:00
parent 2788bd912e
commit e7732caaf7
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -42,6 +42,6 @@ namespace osu.Game.Screens.Play.HUD
protected override void PopIn() => this.FadeIn(fade_duration);
protected override void PopOut() => this.FadeOut(fade_duration);
public void Insert(int i, PlayerSettingsGroup drawable) => content.Insert(i, drawable);
public void AddAtStart(PlayerSettingsGroup drawable) => content.Insert(-1, drawable);
}
}

View File

@ -63,7 +63,7 @@ namespace osu.Game.Screens.Play
if (GameplayClockContainer is MasterGameplayClockContainer master)
playbackSettings.UserPlaybackRate.BindTo(master.UserPlaybackRate);
HUDOverlay.PlayerSettingsOverlay.Insert(-1, playbackSettings);
HUDOverlay.PlayerSettingsOverlay.AddAtStart(playbackSettings);
}
protected override void PrepareReplay()