1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 06:21:22 +08:00

parse isOutdated and needsCleanup

This commit is contained in:
Gagah Pangeran Rosfatiputra
2021-05-21 16:05:37 +07:00
Unverified
parent 8f1b48d766
commit b3eff65a0c
@@ -9,11 +9,28 @@ namespace osu.Game.Overlays.Wiki.Markdown
{
public class WikiNoticeContainer : FillFlowContainer
{
private readonly bool isOutdated;
private readonly bool needsCleanup;
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
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;
}
}
}
}
}