2021-06-10 10:38:07 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2021-06-10 10:38:07 +08:00
|
|
|
using Markdig.Syntax.Inlines;
|
|
|
|
using osu.Framework.Graphics.Containers.Markdown;
|
|
|
|
using osu.Framework.Graphics.Cursor;
|
2021-06-26 01:10:04 +08:00
|
|
|
using osu.Framework.Localisation;
|
2021-06-10 10:38:07 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Graphics.Containers.Markdown
|
|
|
|
{
|
|
|
|
public partial class OsuMarkdownImage : MarkdownImage, IHasTooltip
|
|
|
|
{
|
2021-06-26 01:10:04 +08:00
|
|
|
public LocalisableString TooltipText { get; }
|
2021-06-10 10:38:07 +08:00
|
|
|
|
|
|
|
public OsuMarkdownImage(LinkInline linkInline)
|
|
|
|
: base(linkInline.Url)
|
|
|
|
{
|
|
|
|
TooltipText = linkInline.Title;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|