mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
change WikiArticlePage to extends CompositeDrawable
This commit is contained in:
parent
f07d4532d9
commit
5ee77925e4
@ -10,7 +10,7 @@ using osu.Game.Overlays.Wiki.Markdown;
|
|||||||
|
|
||||||
namespace osu.Game.Overlays.Wiki
|
namespace osu.Game.Overlays.Wiki
|
||||||
{
|
{
|
||||||
public class WikiArticlePage : GridContainer
|
public class WikiArticlePage : CompositeDrawable
|
||||||
{
|
{
|
||||||
public Container SidebarContainer { get; }
|
public Container SidebarContainer { get; }
|
||||||
|
|
||||||
@ -18,42 +18,47 @@ namespace osu.Game.Overlays.Wiki
|
|||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
RowDimensions = new[]
|
|
||||||
{
|
|
||||||
new Dimension(GridSizeMode.AutoSize),
|
|
||||||
};
|
|
||||||
ColumnDimensions = new[]
|
|
||||||
{
|
|
||||||
new Dimension(GridSizeMode.AutoSize),
|
|
||||||
new Dimension(),
|
|
||||||
};
|
|
||||||
|
|
||||||
WikiSidebar sidebar;
|
WikiSidebar sidebar;
|
||||||
|
|
||||||
Content = new[]
|
InternalChild = new GridContainer
|
||||||
{
|
{
|
||||||
new Drawable[]
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
RowDimensions = new[]
|
||||||
{
|
{
|
||||||
SidebarContainer = new Container
|
new Dimension(GridSizeMode.AutoSize),
|
||||||
|
},
|
||||||
|
ColumnDimensions = new[]
|
||||||
|
{
|
||||||
|
new Dimension(GridSizeMode.AutoSize),
|
||||||
|
new Dimension(),
|
||||||
|
},
|
||||||
|
Content = new[]
|
||||||
|
{
|
||||||
|
new Drawable[]
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.X,
|
SidebarContainer = new Container
|
||||||
Child = sidebar = new WikiSidebar(),
|
|
||||||
},
|
|
||||||
new ArticleMarkdownContainer
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
CurrentPath = currentPath,
|
|
||||||
Text = markdown,
|
|
||||||
DocumentMargin = new MarginPadding(0),
|
|
||||||
DocumentPadding = new MarginPadding
|
|
||||||
{
|
{
|
||||||
Vertical = 20,
|
AutoSizeAxes = Axes.X,
|
||||||
Left = 30,
|
Child = sidebar = new WikiSidebar(),
|
||||||
Right = 50,
|
|
||||||
},
|
},
|
||||||
OnAddHeading = sidebar.AddEntry,
|
new ArticleMarkdownContainer
|
||||||
}
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
CurrentPath = currentPath,
|
||||||
|
Text = markdown,
|
||||||
|
DocumentMargin = new MarginPadding(0),
|
||||||
|
DocumentPadding = new MarginPadding
|
||||||
|
{
|
||||||
|
Vertical = 20,
|
||||||
|
Left = 30,
|
||||||
|
Right = 50,
|
||||||
|
},
|
||||||
|
OnAddHeading = sidebar.AddEntry,
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user