Fix MosueUp and HighResolution events not being handled by MenuOverlays.

This commit is contained in:
Dean Herbert 2017-04-13 12:41:08 +09:00
parent 359fea7e25
commit 1f4e0b0251
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -17,7 +17,7 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Screens.Play
{
public abstract class MenuOverlay : OverlayContainer
public abstract class MenuOverlay : OverlayContainer, IRequireHighFrequencyMousePosition
{
private const int transition_duration = 200;
private const int button_height = 70;
@ -81,6 +81,8 @@ namespace osu.Game.Screens.Play
// Don't let mouse down events through the overlay or people can click circles while paused.
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args) => true;
protected override bool OnMouseMove(InputState state) => true;
protected void AddButton(string text, Color4 colour, Action action)