mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
Improved code for grow/deflate slide scale option
This commit is contained in:
parent
e1aa0bfe6d
commit
dcab6ab883
@ -45,12 +45,20 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
var h = (OsuHitObject)drawable.HitObject;
|
||||
|
||||
// apply grow effect
|
||||
if ((drawable is DrawableSlider && ScaleSliders.Value)
|
||||
|| (drawable is DrawableSliderHead && !ScaleSliders.Value)
|
||||
|| drawable is DrawableHitCircle)
|
||||
switch (drawable)
|
||||
{
|
||||
case DrawableSliderTail:
|
||||
// special case we should *not* be scaling.
|
||||
break;
|
||||
|
||||
case DrawableSlider when ScaleSliders.Value:
|
||||
case DrawableSliderHead when !ScaleSliders.Value:
|
||||
case DrawableHitCircle:
|
||||
{
|
||||
using (drawable.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
|
||||
drawable.ScaleTo(StartScale.Value).Then().ScaleTo(EndScale, h.TimePreempt, Easing.OutSine);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// remove approach circles
|
||||
|
Loading…
Reference in New Issue
Block a user