mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Use GridContainer to place the bottom bar objects
This commit is contained in:
parent
0cad5a5ca3
commit
7492ab6495
@ -87,30 +87,38 @@ namespace osu.Game.Screens.Edit
|
|||||||
{
|
{
|
||||||
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
|
|
||||||
{
|
|
||||||
Anchor = Anchor.CentreLeft,
|
|
||||||
Origin = Anchor.CentreLeft,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Width = 0.17f
|
ColumnDimensions = new Dimension[]
|
||||||
|
{
|
||||||
|
new Dimension(GridSizeMode.Auto),
|
||||||
|
new Dimension(GridSizeMode.Relative, 0.67f),
|
||||||
|
new Dimension(GridSizeMode.Auto),
|
||||||
|
},
|
||||||
|
Content = new Drawable[][]
|
||||||
|
{
|
||||||
|
new Drawable[]
|
||||||
|
{
|
||||||
|
new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Padding = new MarginPadding { Right = 10 },
|
||||||
|
Child = timeInfo = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||||||
},
|
},
|
||||||
timeline = new SummaryTimeline
|
timeline = new SummaryTimeline
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Width = 0.65f
|
|
||||||
},
|
},
|
||||||
playback = new PlaybackContainer
|
new Container
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreRight,
|
|
||||||
Origin = Anchor.CentreRight,
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Width = 0.17f
|
Padding = new MarginPadding { Left = 10 },
|
||||||
|
Child = playback = new PlaybackContainer { RelativeSizeAxes = Axes.Both },
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user