rename toc entry

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-04 23:31:51 +07:00
parent a82eeb6daf
commit 70c64af25e
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -47,7 +47,7 @@ namespace osu.Game.Overlays.Wiki
case 2: case 2:
case 3: case 3:
string title = getTitle(headingBlock.Inline); string title = getTitle(headingBlock.Inline);
tableOfContents.Add(new TocTitle(title, heading, headingBlock.Level == 3)); tableOfContents.Add(new TableOfContentsEntry(title, heading, headingBlock.Level == 3));
break; break;
} }
} }
@ -69,7 +69,7 @@ namespace osu.Game.Overlays.Wiki
return string.Empty; return string.Empty;
} }
private class TocTitle : OsuHoverContainer private class TableOfContentsEntry : OsuHoverContainer
{ {
[Resolved] [Resolved]
private OverlayScrollContainer scrollContainer { get; set; } private OverlayScrollContainer scrollContainer { get; set; }
@ -78,7 +78,7 @@ namespace osu.Game.Overlays.Wiki
private readonly OsuTextFlowContainer textFlow; private readonly OsuTextFlowContainer textFlow;
public TocTitle(string text, MarkdownHeading target, bool subtitle = false) public TableOfContentsEntry(string text, MarkdownHeading target, bool subtitle = false)
{ {
this.target = target; this.target = target;