diff --git a/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableManiaHitObject.cs b/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableManiaHitObject.cs index 4e276fddb7..e32e953404 100644 --- a/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableManiaHitObject.cs +++ b/osu.Game.Rulesets.Mania/Objects/Drawables/DrawableManiaHitObject.cs @@ -6,6 +6,7 @@ using OpenTK.Input; using osu.Framework.Configuration; using osu.Framework.Graphics; using osu.Game.Rulesets.Mania.Judgements; +using osu.Game.Rulesets.Mania.UI; using osu.Game.Rulesets.Objects.Drawables; namespace osu.Game.Rulesets.Mania.Objects.Drawables @@ -32,6 +33,13 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables Y = (float)HitObject.StartTime; } + protected override void LoadComplete() + { + base.LoadComplete(); + + LifetimeStart = HitObject.StartTime - ManiaPlayfield.TIME_SPAN_MAX; + } + public override Color4 AccentColour { get { return base.AccentColour; } diff --git a/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs b/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs index cfac2a5a34..30a8e778a3 100644 --- a/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs +++ b/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs @@ -31,9 +31,9 @@ namespace osu.Game.Rulesets.Mania.UI public const float HIT_TARGET_POSITION = 50; private const float time_span_default = 1500; - private const float time_span_min = 10; - private const float time_span_max = 50000; - private const float time_span_step = 200; + public const float TIME_SPAN_MIN = 50; + public const float TIME_SPAN_MAX = 10000; + private const float time_span_step = 50; /// /// Default column keys, expanding outwards from the middle as more column are added. @@ -243,7 +243,7 @@ namespace osu.Game.Rulesets.Mania.UI return; timeSpan = value; - timeSpan = MathHelper.Clamp(timeSpan, time_span_min, time_span_max); + timeSpan = MathHelper.Clamp(timeSpan, TIME_SPAN_MIN, TIME_SPAN_MAX); barLineContainer.TimeSpan = new Vector2(1, value); Columns.ForEach(c => c.TimeSpan = value);