1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00

Avoid using Schedule in transforms (doesn't handle rewind well)

This commit is contained in:
Dean Herbert 2023-05-02 17:08:49 +09:00
parent 7830711c8e
commit e44672bdd5

View File

@ -185,8 +185,9 @@ namespace osu.Game.Rulesets.Osu.Mods
content.TransformTo(nameof(BorderColour), colourDarker, duration * 0.3f, Easing.OutQuint);
// Ripple effect utilises the border to reduce drawable count
content.TransformTo(nameof(BorderThickness), 2f, duration * 0.3f, Easing.OutQuint)
.Then()
// Avoids transparency overlap issues during the bubble "pop"
.Then().Schedule(() => content.BorderThickness = 0);
.TransformTo(nameof(BorderThickness), 0f);
}
private Vector2 getPosition(DrawableOsuHitObject drawableObject)