mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Move Control Group timing data into it's own component
This commit is contained in:
parent
b6d7bec240
commit
792334a190
@ -90,11 +90,19 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
{
|
||||
return new Drawable[]
|
||||
{
|
||||
new FillFlowContainer
|
||||
new ControlGroupTiming(group),
|
||||
new ControlGroupAttributes(group, c => c is not TimingControlPoint)
|
||||
};
|
||||
}
|
||||
|
||||
private partial class ControlGroupTiming : FillFlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Width = TIMING_COLUMN_WIDTH,
|
||||
Spacing = new Vector2(5),
|
||||
public ControlGroupTiming(ControlPointGroup group)
|
||||
{
|
||||
Name = @"ControlGroupTiming";
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
Width = TIMING_COLUMN_WIDTH;
|
||||
Spacing = new Vector2(5);
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
@ -110,11 +118,9 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
}
|
||||
}
|
||||
},
|
||||
new ControlGroupAttributes(group, c => !(c is TimingControlPoint))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private partial class ControlGroupAttributes : CompositeDrawable
|
||||
{
|
||||
@ -130,6 +136,7 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
|
||||
AutoSizeAxes = Axes.X;
|
||||
RelativeSizeAxes = Axes.Y;
|
||||
Name = @"ControlGroupAttributes";
|
||||
|
||||
InternalChild = fill = new FillFlowContainer
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user