mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 16:06:06 +08:00
add main page in wiki overlay
This commit is contained in:
parent
1109970278
commit
ae0949fc14
@ -54,6 +54,16 @@ namespace osu.Game.Overlays
|
|||||||
private void onSuccess(APIWikiPage response)
|
private void onSuccess(APIWikiPage response)
|
||||||
{
|
{
|
||||||
wikiData.Value = response;
|
wikiData.Value = response;
|
||||||
|
|
||||||
|
if (response.Layout == "main_page")
|
||||||
|
{
|
||||||
|
LoadDisplay(new WikiMainPage
|
||||||
|
{
|
||||||
|
Markdown = response.Markdown
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
LoadDisplay(new WikiMarkdownContainer
|
LoadDisplay(new WikiMarkdownContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -62,6 +72,7 @@ namespace osu.Game.Overlays
|
|||||||
Text = response.Markdown,
|
Text = response.Markdown,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void showParentPage()
|
private void showParentPage()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user