mirror of
https://github.com/osukey/osukey.git
synced 2025-05-26 07:57:32 +09:00
add main page in wiki overlay
This commit is contained in:
parent
1109970278
commit
ae0949fc14
@ -54,13 +54,24 @@ namespace osu.Game.Overlays
|
|||||||
private void onSuccess(APIWikiPage response)
|
private void onSuccess(APIWikiPage response)
|
||||||
{
|
{
|
||||||
wikiData.Value = response;
|
wikiData.Value = response;
|
||||||
LoadDisplay(new WikiMarkdownContainer
|
|
||||||
|
if (response.Layout == "main_page")
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
LoadDisplay(new WikiMainPage
|
||||||
AutoSizeAxes = Axes.Y,
|
{
|
||||||
CurrentPath = $"{path.Value}/",
|
Markdown = response.Markdown
|
||||||
Text = response.Markdown,
|
});
|
||||||
});
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LoadDisplay(new WikiMarkdownContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
CurrentPath = $"{path.Value}/",
|
||||||
|
Text = response.Markdown,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void showParentPage()
|
private void showParentPage()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user