Fix incorrect xmldoc and adjust colour provider to match `Player`

This commit is contained in:
Dean Herbert 2024-05-01 19:34:42 +08:00
parent 67c0d7590a
commit 87e814e201
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View File

@ -529,7 +529,7 @@ internal DrawableRuleset(Ruleset ruleset)
public ResumeOverlay ResumeOverlay { get; protected set; }
/// <summary>
/// Whether the <see cref="ResumeOverlay"/> should be used to return the user's cursor position to its previous location after a pause.
/// Whether a <see cref="ResumeOverlay"/> should be displayed on resuming after a pause.
/// </summary>
/// <remarks>
/// Defaults to <c>true</c>.

View File

@ -24,8 +24,9 @@ namespace osu.Game.Screens.Play
/// </summary>
public partial class DelayedResumeOverlay : ResumeOverlay
{
// todo: this shouldn't define its own colour provider, but nothing in Player screen does, so let's do that for now.
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);
// todo: this shouldn't define its own colour provider, but nothing in DrawableRuleset guarantees this, so let's do it locally for now.
// (of note, Player does cache one but any test which uses a DrawableRuleset without Player will fail without this).
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
private const float outer_size = 200;
private const float inner_size = 150;