1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 02:32:55 +08:00

Expose an immutable bindable in interface.

This commit is contained in:
Lucas A 2020-09-02 19:55:46 +02:00
parent dd093f44d8
commit 3fc6a74fdf
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@ namespace osu.Game.Screens
/// <summary>
/// Whether overlays should be able to be opened when this screen is current.
/// </summary>
Bindable<OverlayActivation> OverlayActivationMode { get; }
IBindable<OverlayActivation> OverlayActivationMode { get; }
/// <summary>
/// The amount of parallax to be applied while this screen is displayed.

View File

@ -48,7 +48,9 @@ namespace osu.Game.Screens
/// </summary>
protected virtual OverlayActivation InitialOverlayActivationMode => OverlayActivation.All;
public Bindable<OverlayActivation> OverlayActivationMode { get; }
protected readonly Bindable<OverlayActivation> OverlayActivationMode;
IBindable<OverlayActivation> IOsuScreen.OverlayActivationMode => OverlayActivationMode;
public virtual bool CursorVisible => true;