mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Extract constant to avoid double initial value spec
This commit is contained in:
parent
f8ef53a62e
commit
9a09f97478
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user