mirror of
https://github.com/ppy/osu
synced 2024-12-12 18:07:52 +00:00
remove CreateNotice method and move implementation to local
This commit is contained in:
parent
eeb6647bc5
commit
47cbbee4d1
@ -22,7 +22,7 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
switch (markdownObject)
|
||||
{
|
||||
case YamlFrontMatterBlock yamlFrontMatterBlock:
|
||||
container.Add(CreateNotice(yamlFrontMatterBlock));
|
||||
container.Add(new WikiNoticeContainer(yamlFrontMatterBlock));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -33,8 +33,6 @@ namespace osu.Game.Overlays.Wiki.Markdown
|
||||
|
||||
protected override MarkdownParagraph CreateParagraph(ParagraphBlock paragraphBlock, int level) => new WikiMarkdownParagraph(paragraphBlock);
|
||||
|
||||
protected virtual FillFlowContainer CreateNotice(YamlFrontMatterBlock yamlFrontMatterBlock) => new WikiNoticeContainer(yamlFrontMatterBlock);
|
||||
|
||||
private class WikiMarkdownTextFlowContainer : OsuMarkdownTextFlowContainer
|
||||
{
|
||||
protected override void AddImage(LinkInline linkInline) => AddDrawable(new WikiMarkdownImage(linkInline));
|
||||
|
Loading…
Reference in New Issue
Block a user