1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Make life time set after children are updated (for now).

This commit is contained in:
smoogipooo 2017-06-02 18:11:36 +09:00
parent 264bf17bc2
commit 97dd80b874

View File

@ -36,6 +36,13 @@ namespace osu.Game.Rulesets.Mania.Timing.Drawables
// Adjust our height to account for the speed changes
Height = (float)(1000 / TimingChange.BeatLength / TimingChange.SpeedMultiplier);
RelativeCoordinateSpace = new Vector2(1, (float)parent.TimeSpan);
}
protected override void UpdateAfterChildren()
{
base.UpdateAfterChildren();
var parent = (TimingChangeContainer)Parent;
LifetimeStart = TimingChange.Time - parent.TimeSpan;
LifetimeEnd = TimingChange.Time + Content.RelativeCoordinateSpace.Y * 2;