1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 03:47:19 +08:00

Fix being able to click two toolbar buttons at once.

This commit is contained in:
Dean Herbert 2016-10-04 20:00:55 +09:00
parent 836083667f
commit 3891f467a3

@ -157,21 +157,20 @@ namespace osu.Game.Overlays
{
Action?.Invoke();
HoverBackground.FlashColour(Color4.White, 400);
return base.OnClick(state);
return true;
}
protected override bool OnHover(InputState state)
{
HoverBackground.FadeTo(0.4f, 200);
tooltipContainer.FadeIn(100);
return base.OnHover(state);
return true;
}
protected override void OnHoverLost(InputState state)
{
HoverBackground.FadeTo(0, 200);
tooltipContainer.FadeOut(100);
base.OnHoverLost(state);
}
}
}