mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Don't run AutoSize transforms when tooltip is already invisible.
This commit is contained in:
parent
a884ac215e
commit
d12a9a7675
@ -98,7 +98,12 @@ namespace osu.Game.Graphics.Cursor
|
||||
|
||||
text.Text = value;
|
||||
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()
|
||||
{
|
||||
AutoSizeDuration = 250;
|
||||
AutoSizeEasing = EasingTypes.OutQuint;
|
||||
AutoSizeAxes = Axes.Both;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user