Update with framework changes.

This commit is contained in:
smoogipooo
2017-06-05 20:02:44 +09:00
parent a3299809fe
commit 4307242bb6
6 changed files with 26 additions and 31 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Mania.Timing.Drawables
// The gravity-adjusted start position
float startY = (float)computeGravityTime(TimingChange.Time);
// The gravity-adjusted end position
float endY = (float)computeGravityTime(TimingChange.Time + Content.RelativeCoordinateSpace.Y);
float endY = (float)computeGravityTime(TimingChange.Time + Content.RelativeCoordinateSpace.Height);
Content.Y = startY;
Content.Height = endY - startY;
@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Mania.Timing.Drawables
/// <summary>
/// The time spanned by this container.
/// </summary>
private double timeSpan => RelativeCoordinateSpace.Y;
private double timeSpan => RelativeCoordinateSpace.Height;
/// <summary>
/// The acceleration due to "gravity" of the content of this container.

View File

@ -25,7 +25,7 @@ namespace osu.Game.Rulesets.Mania.Timing.Drawables
// This is very naive and can be improved, but is adequate for now
LifetimeStart = TimingChange.Time - parent.TimeSpan.Y;
LifetimeEnd = TimingChange.Time + Content.RelativeCoordinateSpace.Y * 2;
LifetimeEnd = TimingChange.Time + Content.RelativeCoordinateSpace.Height * 2;
}
}
}