mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
add IsFullWidth
This commit is contained in:
parent
4d222467cc
commit
365a0b25f2
@ -71,6 +71,7 @@ namespace osu.Game.Overlays.Wiki
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Width = isFullWidth ? 1.0f : 0.5f,
|
||||
Text = panel.InnerText,
|
||||
IsFullWidth = isFullWidth,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user