mirror of https://github.com/ppy/osu
Use GridContainer to place the bottom bar objects
This commit is contained in:
parent
0cad5a5ca3
commit
7492ab6495
|
@ -87,30 +87,38 @@ public Editor()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Padding = new MarginPadding { Vertical = 5, Horizontal = 10 },
|
Padding = new MarginPadding { Vertical = 5, Horizontal = 10 },
|
||||||
Children = new Drawable[]
|
Child = new GridContainer
|
||||||
{
|
{
|
||||||
timeInfo = new TimeInfoContainer
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
ColumnDimensions = new Dimension[]
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
new Dimension(GridSizeMode.Auto),
|
||||||
Origin = Anchor.CentreLeft,
|
new Dimension(GridSizeMode.Relative, 0.67f),
|
||||||
RelativeSizeAxes = Axes.Both,
|
new Dimension(GridSizeMode.Auto),
|
||||||
Width = 0.17f
|
|
||||||
},
|
},
|
||||||
timeline = new SummaryTimeline
|
Content = new Drawable[][]
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
new Drawable[]
|
||||||
Origin = Anchor.Centre,
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
new Container
|
||||||
Width = 0.65f
|
{
|
||||||
},
|
RelativeSizeAxes = Axes.Both,
|
||||||
playback = new PlaybackContainer
|
Padding = new MarginPadding { Right = 10 },
|
||||||
{
|
Child = timeInfo = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||||||
Anchor = Anchor.CentreRight,
|
},
|
||||||
Origin = Anchor.CentreRight,
|
timeline = new SummaryTimeline
|
||||||
RelativeSizeAxes = Axes.Both,
|
{
|
||||||
Width = 0.17f
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
}
|
new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Padding = new MarginPadding { Left = 10 },
|
||||||
|
Child = playback = new PlaybackContainer { RelativeSizeAxes = Axes.Both },
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue