Fix lead-in time now being long enough in many cases

This commit is contained in:
Dean Herbert
2018-07-17 14:29:22 +09:00
parent b69f61886c
commit b967fe714b
3 changed files with 19 additions and 4 deletions

View File

@ -56,6 +56,12 @@ namespace osu.Game.Rulesets.UI
public abstract IEnumerable<HitObject> Objects { get; }
/// <summary>
/// The point in time at which gameplay starts, including any required lead-in for display purposes.
/// Defaults to two seconds before the first <see cref="HitObject"/>. Override as necessary.
/// </summary>
public virtual double GameplayStartTime => Objects.First().StartTime - 2000;
private readonly Lazy<Playfield> playfield;
/// <summary>