mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:43:10 +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,
|
AutoSizeAxes = Axes.Y,
|
||||||
Width = isFullWidth ? 1.0f : 0.5f,
|
Width = isFullWidth ? 1.0f : 0.5f,
|
||||||
Text = panel.InnerText,
|
Text = panel.InnerText,
|
||||||
|
IsFullWidth = isFullWidth,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user