mirror of
https://github.com/ppy/osu
synced 2025-02-15 17:47:28 +00:00
parse isOutdated and needsCleanup
This commit is contained in:
parent
8f1b48d766
commit
b3eff65a0c
@ -9,11 +9,28 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
|||||||
{
|
{
|
||||||
public class WikiNoticeContainer : FillFlowContainer
|
public class WikiNoticeContainer : FillFlowContainer
|
||||||
{
|
{
|
||||||
|
private readonly bool isOutdated;
|
||||||
|
private readonly bool needsCleanup;
|
||||||
|
|
||||||
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
|
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Direction = FillDirection.Vertical;
|
Direction = FillDirection.Vertical;
|
||||||
|
|
||||||
|
foreach (var line in yamlFrontMatterBlock.Lines)
|
||||||
|
{
|
||||||
|
switch (line.ToString())
|
||||||
|
{
|
||||||
|
case "outdated: true":
|
||||||
|
isOutdated = true;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "needs_cleanup: true":
|
||||||
|
needsCleanup = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user