expose two Bindables with split logic instead of one with mixed logic

This commit is contained in:
Aergwyn
2018-05-21 15:53:50 +02:00
parent 1482bca147
commit b7e3ea348b
12 changed files with 43 additions and 26 deletions

View File

@ -24,7 +24,8 @@ namespace osu.Game.Screens.Menu
{
private readonly ButtonSystem buttons;
public override bool HideOverlaysOnEnter => buttons.State == MenuState.Initial;
protected override bool HideOverlaysOnEnter => buttons.State == MenuState.Initial;
protected override bool AllowOpeningOverlays => buttons.State != MenuState.Initial;
protected override bool AllowBackButton => buttons.State != MenuState.Initial;