mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Use GridContainer for layout
This commit is contained in:
parent
c69818925b
commit
ea99b613c9
@ -32,33 +32,37 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AddInternal(new FillFlowContainer
|
AddInternal(new GridContainer
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Spacing = new Vector2(0, 7),
|
ColumnDimensions = new[]
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
{
|
||||||
new Container
|
new Dimension(GridSizeMode.Absolute, size: 100),
|
||||||
|
new Dimension()
|
||||||
|
},
|
||||||
|
RowDimensions = new[]
|
||||||
|
{
|
||||||
|
new Dimension(GridSizeMode.AutoSize)
|
||||||
|
},
|
||||||
|
Content = new[]
|
||||||
|
{
|
||||||
|
new Drawable[]
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
new OsuSpriteText
|
||||||
Origin = Anchor.CentreLeft,
|
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
Width = 100,
|
|
||||||
Child = new OsuSpriteText
|
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Font = OsuFont.GetFont(size: 10),
|
Font = OsuFont.GetFont(size: 10),
|
||||||
Text = headerName.ToUpper()
|
Text = headerName.ToUpper()
|
||||||
}
|
},
|
||||||
},
|
CreateFilter().With(f =>
|
||||||
CreateFilter().With(f =>
|
{
|
||||||
{
|
f.Anchor = Anchor.CentreLeft;
|
||||||
f.Anchor = Anchor.CentreLeft;
|
f.Origin = Anchor.CentreLeft;
|
||||||
f.Origin = Anchor.CentreLeft;
|
f.Current = current;
|
||||||
f.Current = current;
|
})
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user