mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Add bar line timing changes.
This commit is contained in:
parent
f612914e87
commit
3e2aa26722
@ -39,6 +39,6 @@ namespace osu.Game.Rulesets.Mania.Timing
|
||||
/// </summary>
|
||||
/// <param name="hitObject">The hit object to contain.</param>
|
||||
/// <returns>The last timing change which can contain <paramref name="hitObject"/>.</returns>
|
||||
private DrawableTimingChange timingChangeFor(DrawableHitObject hitObject) => Children.LastOrDefault(c => c.CanContain(hitObject));
|
||||
private DrawableTimingChange timingChangeFor(DrawableHitObject hitObject) => Children.LastOrDefault(c => c.CanContain(hitObject)) ?? Children.FirstOrDefault();
|
||||
}
|
||||
}
|
@ -21,6 +21,7 @@ using osu.Game.Rulesets.Mania.Objects;
|
||||
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Mania.Scoring;
|
||||
using osu.Game.Rulesets.Mania.Timing;
|
||||
using osu.Game.Rulesets.Mania.Timing.Drawable;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Objects.Types;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
@ -88,6 +89,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
};
|
||||
|
||||
timingChanges.ForEach(t => playfield.Columns.ForEach(c => c.Add(new DrawableScrollingTimingChange(t))));
|
||||
timingChanges.ForEach(t => playfield.Add(new DrawableScrollingTimingChange(t)));
|
||||
|
||||
return playfield;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user