mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
add panels to grid content
This commit is contained in:
parent
24fef221e3
commit
10c4ba3a74
@ -28,6 +28,8 @@ namespace osu.Game.Overlays.Wiki
|
||||
var html = new HtmlDocument();
|
||||
html.LoadHtml(Markdown);
|
||||
|
||||
var panels = createPanels(html).ToArray();
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
createBlurb(html),
|
||||
@ -35,6 +37,8 @@ namespace osu.Game.Overlays.Wiki
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
RowDimensions = Enumerable.Repeat(new Dimension(GridSizeMode.AutoSize), panels.Length).ToArray(),
|
||||
Content = panels,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user