mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Don't run AutoSize transforms when tooltip is already invisible.
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user