mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:42:56 +08:00
Readded color flash and simplify logic
This commit is contained in:
parent
70096b6c86
commit
2db0466722
@ -54,14 +54,14 @@ namespace osu.Game.Graphics.UserInterface
|
||||
content.ScaleTo(1, 200, EasingTypes.OutElastic);
|
||||
|
||||
if (Hovering)
|
||||
hover.FadeOut(200, EasingTypes.OutQuint);
|
||||
OnHoverLost(new InputState());
|
||||
}
|
||||
else
|
||||
{
|
||||
FadeColour(Color4.White, 200, EasingTypes.OutQuint);
|
||||
|
||||
if (Hovering)
|
||||
hover.FadeIn(500, EasingTypes.OutQuint);
|
||||
OnHover(new InputState());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -135,6 +135,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override bool OnClick(InputState state)
|
||||
{
|
||||
hover.FlashColour(flashColour, 800, EasingTypes.OutQuint);
|
||||
return base.OnClick(state);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user