mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 00:13:19 +08:00
Fix OsuAnimatedButton
not flashing when triggered via code
This commit is contained in:
parent
1e0e29847f
commit
7c5813c05a
@ -111,6 +111,10 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
// Handle case where a click is triggered via TriggerClick().
|
||||
if (!IsHovered)
|
||||
hover.FadeOutFromOne(1600);
|
||||
|
||||
hover.FlashColour(FlashColour, 800, Easing.OutQuint);
|
||||
return base.OnClick(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user