1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-11 02:57:18 +08:00

24 lines
657 B
C#
Raw Normal View History

2021-06-10 09:38:07 +07: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 16:37:17 +09:00
#nullable disable
2021-06-10 09:38:07 +07:00
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Localisation;
2021-06-10 09:38:07 +07:00
namespace osu.Game.Graphics.Containers.Markdown
{
public class OsuMarkdownImage : MarkdownImage, IHasTooltip
{
public LocalisableString TooltipText { get; }
2021-06-10 09:38:07 +07:00
public OsuMarkdownImage(LinkInline linkInline)
: base(linkInline.Url)
{
TooltipText = linkInline.Title;
}
}
}