Let latency certifier buttons steal hover from area

This commit is contained in:
Salman Ahmed
2022-06-16 19:56:56 +03:00
parent ed6817ae6a
commit beb0331640
2 changed files with 6 additions and 4 deletions

View File

@ -38,6 +38,8 @@ namespace osu.Game.Screens.Utility
return base.OnKeyDown(e); return base.OnKeyDown(e);
} }
protected override bool OnHover(HoverEvent e) => true;
[Resolved] [Resolved]
private OverlayColourProvider overlayColourProvider { get; set; } = null!; private OverlayColourProvider overlayColourProvider { get; set; } = null!;

View File

@ -62,6 +62,10 @@ namespace osu.Game.Screens.Utility
Colour = overlayColourProvider.Background6, Colour = overlayColourProvider.Background6,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
}, },
visualContent = new Container
{
RelativeSizeAxes = Axes.Both,
},
new ButtonWithKeyBind(key) new ButtonWithKeyBind(key)
{ {
Text = "Feels better", Text = "Feels better",
@ -71,10 +75,6 @@ namespace osu.Game.Screens.Utility
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Action = () => ReportUserBest?.Invoke(), Action = () => ReportUserBest?.Invoke(),
}, },
visualContent = new Container
{
RelativeSizeAxes = Axes.Both,
},
}; };
IsActiveArea.BindValueChanged(active => IsActiveArea.BindValueChanged(active =>