mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:13:21 +08:00
Avoid using Schedule
in transforms (doesn't handle rewind well)
This commit is contained in:
parent
7830711c8e
commit
e44672bdd5
@ -185,8 +185,9 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
content.TransformTo(nameof(BorderColour), colourDarker, duration * 0.3f, Easing.OutQuint);
|
content.TransformTo(nameof(BorderColour), colourDarker, duration * 0.3f, Easing.OutQuint);
|
||||||
// Ripple effect utilises the border to reduce drawable count
|
// Ripple effect utilises the border to reduce drawable count
|
||||||
content.TransformTo(nameof(BorderThickness), 2f, duration * 0.3f, Easing.OutQuint)
|
content.TransformTo(nameof(BorderThickness), 2f, duration * 0.3f, Easing.OutQuint)
|
||||||
|
.Then()
|
||||||
// Avoids transparency overlap issues during the bubble "pop"
|
// Avoids transparency overlap issues during the bubble "pop"
|
||||||
.Then().Schedule(() => content.BorderThickness = 0);
|
.TransformTo(nameof(BorderThickness), 0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Vector2 getPosition(DrawableOsuHitObject drawableObject)
|
private Vector2 getPosition(DrawableOsuHitObject drawableObject)
|
||||||
|
Loading…
Reference in New Issue
Block a user