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

24 lines
665 B
C#

// 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.
#nullable disable
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Localisation;
namespace osu.Game.Graphics.Containers.Markdown
{
public partial class OsuMarkdownImage : MarkdownImage, IHasTooltip
{
public LocalisableString TooltipText { get; }
public OsuMarkdownImage(LinkInline linkInline)
: base(linkInline.Url)
{
TooltipText = linkInline.Title;
}
}
}