1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Fix home button not flashing when pressing shortcut

This commit is contained in:
Joehu 2020-06-14 11:24:23 -07:00
parent b8fa1a2c41
commit 1f7679e829

View File

@ -78,9 +78,8 @@ namespace osu.Game.Overlays.Toolbar
HoverBackground = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(80).Opacity(180),
Colour = OsuColour.Gray(80).Opacity(0),
Blending = BlendingParameters.Additive,
Alpha = 0,
},
Flow = new FillFlowContainer
{
@ -146,14 +145,14 @@ namespace osu.Game.Overlays.Toolbar
protected override bool OnHover(HoverEvent e)
{
HoverBackground.FadeIn(200);
HoverBackground.FadeColour(OsuColour.Gray(80).Opacity(180), 200);
tooltipContainer.FadeIn(100);
return base.OnHover(e);
}
protected override void OnHoverLost(HoverLostEvent e)
{
HoverBackground.FadeOut(200);
HoverBackground.FadeColour(OsuColour.Gray(80).Opacity(0), 200);
tooltipContainer.FadeOut(100);
}
}