1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

add IsFullWidth

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 18:03:38 +07:00
parent 4d222467cc
commit 365a0b25f2
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2
2 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,7 @@ namespace osu.Game.Overlays.Wiki
AutoSizeAxes = Axes.Y,
Width = isFullWidth ? 1.0f : 0.5f,
Text = panel.InnerText,
IsFullWidth = isFullWidth,
};
}
}

View File

@ -20,6 +20,8 @@ namespace osu.Game.Overlays.Wiki
public string Text;
public bool IsFullWidth;
[BackgroundDependencyLoader]
private void load()
{
@ -49,12 +51,15 @@ namespace osu.Game.Overlays.Wiki
Text = Text,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
IsFullWidth = IsFullWidth,
}
};
}
private class WikiPanelMarkdownContainer : WikiMarkdownContainer
{
public bool IsFullWidth;
public WikiPanelMarkdownContainer()
{
LineSpacing = 0;