1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 07:50:02 +08:00

add method AddToc

This commit is contained in:
Gagah Pangeran Rosfatiputra
2021-06-04 10:17:38 +07:00
Unverified
parent 7e78150144
commit b1b305c150
+15
View File
@@ -3,6 +3,7 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
@@ -32,5 +33,19 @@ namespace osu.Game.Overlays.Wiki
}
},
};
public void AddToc(string title, MarkdownHeading heading, int level)
{
switch (level)
{
case 2:
tableOfContents.Add(new OsuSpriteText
{
Text = title,
Font = OsuFont.GetFont(size: 15),
});
break;
}
}
}
}