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:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user