mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Localise all URL generation for now to avoid weird Schedule
logic
This commit is contained in:
@ -5,17 +5,22 @@ using System.Linq;
|
||||
using Markdig.Extensions.Yaml;
|
||||
using Markdig.Syntax;
|
||||
using Markdig.Syntax.Inlines;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Containers.Markdown;
|
||||
using osu.Game.Graphics.Containers.Markdown;
|
||||
using osu.Game.Online.API;
|
||||
|
||||
namespace osu.Game.Overlays.Wiki.Markdown
|
||||
{
|
||||
public class WikiMarkdownContainer : OsuMarkdownContainer
|
||||
{
|
||||
[Resolved]
|
||||
private IAPIProvider api { get; set; }
|
||||
|
||||
public string CurrentPath
|
||||
{
|
||||
set => Schedule(() => DocumentUrl = $"{DocumentUrl}wiki/{value}");
|
||||
set => DocumentUrl = value;
|
||||
}
|
||||
|
||||
protected override void AddMarkdownComponent(IMarkdownObject markdownObject, FillFlowContainer container, int level)
|
||||
|
Reference in New Issue
Block a user