mirror of
https://github.com/osukey/osukey.git
synced 2025-05-20 13:07:21 +09:00
change WikiMarkdownImage to extend OsuMarkdownImage
This commit is contained in:
parent
28d7b06908
commit
05cb935a94
@ -2,19 +2,15 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using Markdig.Syntax.Inlines;
|
using Markdig.Syntax.Inlines;
|
||||||
using osu.Framework.Graphics.Containers.Markdown;
|
using osu.Game.Graphics.Containers.Markdown;
|
||||||
using osu.Framework.Graphics.Cursor;
|
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Wiki.Markdown
|
namespace osu.Game.Overlays.Wiki.Markdown
|
||||||
{
|
{
|
||||||
public class WikiMarkdownImage : MarkdownImage, IHasTooltip
|
public class WikiMarkdownImage : OsuMarkdownImage
|
||||||
{
|
{
|
||||||
public string TooltipText { get; }
|
|
||||||
|
|
||||||
public WikiMarkdownImage(LinkInline linkInline)
|
public WikiMarkdownImage(LinkInline linkInline)
|
||||||
: base(linkInline.Url)
|
: base(linkInline)
|
||||||
{
|
{
|
||||||
TooltipText = linkInline.Title;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ImageContainer CreateImageContainer(string url)
|
protected override ImageContainer CreateImageContainer(string url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user