mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:42:56 +08:00
rename method add entry
This commit is contained in:
parent
70c64af25e
commit
5febbe4530
@ -59,7 +59,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
Level = subtitle ? 3 : 2,
|
Level = subtitle ? 3 : 2,
|
||||||
};
|
};
|
||||||
var heading = new OsuMarkdownHeading(headingBlock);
|
var heading = new OsuMarkdownHeading(headingBlock);
|
||||||
sidebar.AddToc(headingBlock, heading);
|
sidebar.AddEntry(headingBlock, heading);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Wiki
|
|||||||
Left = 30,
|
Left = 30,
|
||||||
Right = 50,
|
Right = 50,
|
||||||
},
|
},
|
||||||
OnAddHeading = sidebar.AddToc,
|
OnAddHeading = sidebar.AddEntry,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -40,7 +40,7 @@ namespace osu.Game.Overlays.Wiki
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
public void AddToc(HeadingBlock headingBlock, MarkdownHeading heading)
|
public void AddEntry(HeadingBlock headingBlock, MarkdownHeading heading)
|
||||||
{
|
{
|
||||||
switch (headingBlock.Level)
|
switch (headingBlock.Level)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user