diff --git a/osu.Game.Rulesets.Mania/Timing/TimeRelativeContainer.cs b/osu.Game.Rulesets.Mania/Timing/TimeRelativeContainer.cs index 466639fc02..c5060eabbb 100644 --- a/osu.Game.Rulesets.Mania/Timing/TimeRelativeContainer.cs +++ b/osu.Game.Rulesets.Mania/Timing/TimeRelativeContainer.cs @@ -129,6 +129,11 @@ namespace osu.Game.Rulesets.Mania.Timing base.Add(drawable); } + /// + /// Whether this timing section can contain a drawable. A timing section can contain a drawable if the drawable + /// can be placed within the timing section's bounds (in this case, from the start of the timing section up to infinity). + /// + /// The drawable to check. public bool CanContain(Drawable drawable) => content.Y >= drawable.Y; } } diff --git a/osu.Game.Rulesets.Mania/Timing/TimingSection.cs b/osu.Game.Rulesets.Mania/Timing/TimingSection.cs index fdc367de11..65a2094c46 100644 --- a/osu.Game.Rulesets.Mania/Timing/TimingSection.cs +++ b/osu.Game.Rulesets.Mania/Timing/TimingSection.cs @@ -1,15 +1,30 @@ -// Copyright (c) 2007-2017 ppy Pty Ltd . -// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE - -using osu.Game.Beatmaps.Timing; - -namespace osu.Game.Rulesets.Mania.Timing -{ - public class TimingSection - { - public double StartTime; - public double Duration; - public double BeatLength; - public TimeSignatures TimeSignature; - } +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using osu.Game.Beatmaps.Timing; + +namespace osu.Game.Rulesets.Mania.Timing +{ + /// + /// A point in the map where the beat length or speed multiplier has changed . + /// + public class TimingSection + { + /// + /// The time at which the change occurred. + /// + public double StartTime; + /// + /// The duration of this timing section - lasts until the next timing section. + /// + public double Duration; + /// + /// The beat length, includes any speed multiplier. + /// + public double BeatLength; + /// + /// The time signature of this timing section. + /// + public TimeSignatures TimeSignature; + } } \ No newline at end of file diff --git a/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs b/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs index a3b1a49c9c..46fe64ff66 100644 --- a/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs +++ b/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs @@ -96,7 +96,7 @@ namespace osu.Game.Rulesets.Mania.UI }, barlineContainer = new TimeRelativeContainer(timingSections) { - Name = "Barlines", + Name = "Bar lines", Anchor = Anchor.BottomCentre, Origin = Anchor.BottomCentre, RelativeSizeAxes = Axes.Both,