1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:43:10 +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, AutoSizeAxes = Axes.Y,
Width = isFullWidth ? 1.0f : 0.5f, Width = isFullWidth ? 1.0f : 0.5f,
Text = panel.InnerText, Text = panel.InnerText,
IsFullWidth = isFullWidth,
}; };
} }
} }

View File

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