Make all FocusedOverlays hide on clicks outside of themselves

Also allows wheel events to pass through around them.
This commit is contained in:
Dean Herbert
2017-12-30 20:45:41 +09:00
parent be8c3d2e97
commit 442a649c63
5 changed files with 44 additions and 15 deletions

View File

@ -54,7 +54,6 @@ namespace osu.Game.Overlays
{
this.showSidebar = showSidebar;
RelativeSizeAxes = Axes.Y;
AutoSizeAxes = Axes.X;
}
protected virtual IEnumerable<SettingsSection> CreateSections() => null;
@ -177,8 +176,6 @@ namespace osu.Game.Overlays
public override bool AcceptsFocus => true;
protected override bool OnClick(InputState state) => true;
protected override void OnFocus(InputState state)
{
GetContainingInputManager().ChangeFocus(searchTextBox);