TimeRelativeContainer -> ControlPointContainer, optimize AutoTimeRelativeContainer a little bit (only recompute on invalidation).

This commit is contained in:
smoogipooo
2017-05-16 17:50:09 +09:00
parent 7039205363
commit ac02d1ab10
5 changed files with 23 additions and 18 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Rulesets.Mania.UI
private readonly Container hitTargetBar;
private readonly Container keyIcon;
public readonly TimeRelativeContainer TimingSectionContainer;
public readonly ControlPointContainer TimingSectionContainer;
public Column(IEnumerable<ControlPoint> timingChanges)
{
@ -91,7 +91,7 @@ namespace osu.Game.Rulesets.Mania.UI
}
}
},
TimingSectionContainer = new TimeRelativeContainer(timingChanges)
TimingSectionContainer = new ControlPointContainer(timingChanges)
{
Name = "Hit objects",
RelativeSizeAxes = Axes.Both,

View File

@ -56,7 +56,7 @@ namespace osu.Game.Rulesets.Mania.UI
public readonly FlowContainer<Column> Columns;
private readonly TimeRelativeContainer barlineContainer;
private readonly ControlPointContainer barlineContainer;
private List<Color4> normalColumnColours = new List<Color4>();
private Color4 specialColumnColour;
@ -101,7 +101,7 @@ namespace osu.Game.Rulesets.Mania.UI
Padding = new MarginPadding { Top = HIT_TARGET_POSITION },
Children = new[]
{
barlineContainer = new TimeRelativeContainer(timingChanges)
barlineContainer = new ControlPointContainer(timingChanges)
{
Name = "Bar lines",
RelativeSizeAxes = Axes.Both,