mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:12:57 +08: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 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>
|
/// <summary>
|
||||||
/// Whether gameplay should pause when the game window focus is lost.
|
/// Whether gameplay should pause when the game window focus is lost.
|
||||||
@ -90,11 +96,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private SkipOverlay skipOverlay;
|
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 ScoreProcessor ScoreProcessor { get; private set; }
|
||||||
|
|
||||||
protected HealthProcessor HealthProcessor { get; private set; }
|
protected HealthProcessor HealthProcessor { get; private set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user