mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:15:45 +08:00
Only play OsuHoverContainer hover effect if action is present
This commit is contained in:
parent
2cf43dc4d4
commit
89e62c3d30
@ -22,7 +22,8 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
protected override bool OnHover(HoverEvent e)
|
protected override bool OnHover(HoverEvent e)
|
||||||
{
|
{
|
||||||
EffectTargets.ForEach(d => d.FadeColour(HoverColour, FADE_DURATION, Easing.OutQuint));
|
if (Action != null)
|
||||||
|
EffectTargets.ForEach(d => d.FadeColour(HoverColour, FADE_DURATION, Easing.OutQuint));
|
||||||
return base.OnHover(e);
|
return base.OnHover(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user