Extract constant to avoid double initial value spec

This commit is contained in:
Bartłomiej Dach 2020-08-08 21:21:30 +02:00
parent f8ef53a62e
commit 9a09f97478

View File

@ -50,7 +50,13 @@ namespace osu.Game.Screens.Play
public override bool HideOverlaysOnEnter => true;
public override OverlayActivation InitialOverlayActivationMode => OverlayActivation.UserTriggered;
private const OverlayActivation initial_overlay_activation_mode = OverlayActivation.UserTriggered;
public override OverlayActivation InitialOverlayActivationMode => initial_overlay_activation_mode;
/// <summary>
/// The current activation mode for overlays.
/// </summary>
protected readonly Bindable<OverlayActivation> OverlayActivationMode = new Bindable<OverlayActivation>(initial_overlay_activation_mode);
/// <summary>
/// Whether gameplay should pause when the game window focus is lost.
@ -90,11 +96,6 @@ namespace osu.Game.Screens.Play
private SkipOverlay skipOverlay;
/// <summary>
/// The current activation mode for overlays.
/// </summary>
protected readonly Bindable<OverlayActivation> OverlayActivationMode = new Bindable<OverlayActivation>(OverlayActivation.UserTriggered);
protected ScoreProcessor ScoreProcessor { get; private set; }
protected HealthProcessor HealthProcessor { get; private set; }