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

Change implementation to ensure flashBackground is not present by default

This commit is contained in:
Dean Herbert 2020-06-15 16:14:35 +09:00
parent fe62b26d73
commit 1770b70b81

View File

@ -86,7 +86,8 @@ namespace osu.Game.Overlays.Toolbar
flashBackground = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Transparent,
Alpha = 0,
Colour = Color4.White.Opacity(100),
Blending = BlendingParameters.Additive,
},
Flow = new FillFlowContainer
@ -146,7 +147,7 @@ namespace osu.Game.Overlays.Toolbar
protected override bool OnClick(ClickEvent e)
{
flashBackground.FlashColour(Color4.White.Opacity(100), 500, Easing.OutQuint);
flashBackground.FadeOutFromOne(800, Easing.OutQuint);
tooltipContainer.FadeOut(100);
return base.OnClick(e);
}