mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +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;
|
var h = (OsuHitObject)drawable.HitObject;
|
||||||
|
|
||||||
// apply grow effect
|
// apply grow effect
|
||||||
if ((drawable is DrawableSlider && ScaleSliders.Value)
|
switch (drawable)
|
||||||
|| (drawable is DrawableSliderHead && !ScaleSliders.Value)
|
{
|
||||||
|| drawable is DrawableHitCircle)
|
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))
|
using (drawable.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
|
||||||
drawable.ScaleTo(StartScale.Value).Then().ScaleTo(EndScale, h.TimePreempt, Easing.OutSine);
|
drawable.ScaleTo(StartScale.Value).Then().ScaleTo(EndScale, h.TimePreempt, Easing.OutSine);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove approach circles
|
// remove approach circles
|
||||||
|
Loading…
Reference in New Issue
Block a user