1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 16:19:35 +08:00

Don't run AutoSize transforms when tooltip is already invisible.

This commit is contained in:
Dean Herbert 2017-04-20 16:28:45 +09:00
parent a884ac215e
commit d12a9a7675
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -98,7 +98,12 @@ namespace osu.Game.Graphics.Cursor
text.Text = value; text.Text = value;
if (Alpha > 0) if (Alpha > 0)
background.FlashColour(Color4.Gray, 200, EasingTypes.Out); {
AutoSizeDuration = 250;
background.FlashColour(OsuColour.Gray(0.4f), 1000, EasingTypes.OutQuint);
}
else
AutoSizeDuration = 0;
} }
} }
@ -108,7 +113,6 @@ namespace osu.Game.Graphics.Cursor
public Tooltip() public Tooltip()
{ {
AutoSizeDuration = 250;
AutoSizeEasing = EasingTypes.OutQuint; AutoSizeEasing = EasingTypes.OutQuint;
AutoSizeAxes = Axes.Both; AutoSizeAxes = Axes.Both;