Don't allow clicks/hover events to pass through the options overlay.

This commit is contained in:
Dean Herbert 2017-02-07 20:29:09 +09:00
parent 5757f844bf
commit 446b277972
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -159,8 +159,12 @@ namespace osu.Game.Overlays
} }
} }
protected override bool OnHover(InputState state) => true;
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true; protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
protected override bool OnClick(InputState state) => true;
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) protected override bool OnKeyDown(InputState state, KeyDownEventArgs args)
{ {
switch (args.Key) switch (args.Key)