mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
fixed object scale upon hit
This commit is contained in:
parent
c63d1962f1
commit
9a5127d506
@ -29,15 +29,14 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
{
|
{
|
||||||
if (!(drawable is DrawableHitCircle d))
|
if (!(drawable is DrawableHitCircle d))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
d.ApproachCircle.Hide();
|
d.ApproachCircle.Hide();
|
||||||
var h = d.HitObject;
|
var h = d.HitObject;
|
||||||
|
|
||||||
using (d.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
|
using (d.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
|
||||||
{
|
{
|
||||||
var origScale = d.Scale;
|
var origScale = d.Scale;
|
||||||
d.ScaleTo(1.1f);
|
d.ScaleTo(1.1f, 1) // if duration = 0 then components (i.e. flash) scale with it -> we don't want that
|
||||||
d.ScaleTo(origScale, h.TimePreempt);
|
.Then()
|
||||||
|
.ScaleTo(origScale, h.TimePreempt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user