mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Set DocumentUrl
inside CreateChildDependencies
Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
committed by
GitHub
parent
200592114f
commit
04f16c0783
@ -23,10 +23,14 @@ namespace osu.Game.Graphics.Containers.Markdown
|
|||||||
LineSpacing = 21;
|
LineSpacing = 21;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||||
private void load(IAPIProvider api)
|
|
||||||
{
|
{
|
||||||
|
var api = parent.Get<IAPIProvider>();
|
||||||
|
|
||||||
|
// needs to be set before the base BDL call executes to avoid invalidating any already populated markdown content.
|
||||||
DocumentUrl = api.WebsiteRootUrl;
|
DocumentUrl = api.WebsiteRootUrl;
|
||||||
|
|
||||||
|
return base.CreateChildDependencies(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void AddMarkdownComponent(IMarkdownObject markdownObject, FillFlowContainer container, int level)
|
protected override void AddMarkdownComponent(IMarkdownObject markdownObject, FillFlowContainer container, int level)
|
||||||
|
Reference in New Issue
Block a user