mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 08:32:55 +08:00
Display stub notice in marked wiki articles
This commit is contained in:
parent
0cf69a1084
commit
ea88aee41f
@ -19,6 +19,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
|||||||
{
|
{
|
||||||
private readonly bool isOutdated;
|
private readonly bool isOutdated;
|
||||||
private readonly bool needsCleanup;
|
private readonly bool needsCleanup;
|
||||||
|
private readonly bool isStub;
|
||||||
|
|
||||||
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
|
public WikiNoticeContainer(YamlFrontMatterBlock yamlFrontMatterBlock)
|
||||||
{
|
{
|
||||||
@ -37,6 +38,10 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
|||||||
case @"needs_cleanup: true":
|
case @"needs_cleanup: true":
|
||||||
needsCleanup = true;
|
needsCleanup = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case @"stub: true":
|
||||||
|
isStub = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,6 +65,14 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
|||||||
Text = WikiStrings.ShowNeedsCleanupOrRewrite,
|
Text = WikiStrings.ShowNeedsCleanupOrRewrite,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isStub)
|
||||||
|
{
|
||||||
|
Add(new NoticeBox
|
||||||
|
{
|
||||||
|
Text = WikiStrings.ShowStub,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private partial class NoticeBox : Container
|
private partial class NoticeBox : Container
|
||||||
|
Loading…
Reference in New Issue
Block a user