1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 14:17:27 +08:00
osu-lazer/osu.Game/Graphics/Containers/Markdown/OsuMarkdownImage.cs

22 lines
649 B
C#
Raw Normal View History

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