fix incorrect default values keeping overlays in wrong state

This commit is contained in:
Aergwyn 2018-05-23 16:23:03 +02:00
parent 194710eae4
commit 0c0f86fe26

View File

@ -37,14 +37,14 @@ namespace osu.Game.Screens
/// <summary> /// <summary>
/// Whether overlays should be hidden when this screen is entered or resumed. /// Whether overlays should be hidden when this screen is entered or resumed.
/// </summary> /// </summary>
protected virtual bool HideOverlaysOnEnter => hideOverlaysOnEnter; protected virtual bool HideOverlaysOnEnter => false;
private readonly BindableBool allowOpeningOverlays = new BindableBool(); private readonly BindableBool allowOpeningOverlays = new BindableBool();
/// <summary> /// <summary>
/// Whether overlays should be able to be opened while this screen is active. /// Whether overlays should be able to be opened while this screen is active.
/// </summary> /// </summary>
protected virtual bool AllowOpeningOverlays => allowOpeningOverlays; protected virtual bool AllowOpeningOverlays => true;
/// <summary> /// <summary>
/// Whether this <see cref="OsuScreen"/> allows the cursor to be displayed. /// Whether this <see cref="OsuScreen"/> allows the cursor to be displayed.