Merge pull request #2624 from Aergwyn/hide-toolbar-after-play

Fix incorrect default values keeping overlays in wrong state
This commit is contained in:
Dean Herbert
2018-05-24 09:43:52 +09:00
committed by GitHub

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.