1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

parse isOutdated and needsCleanup

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-21 16:05:37 +07:00
parent 8f1b48d766
commit b3eff65a0c
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -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;
}
}
}
}
}