1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-20 06:33:02 +08:00
osu-lazer/osu.Game/Graphics/Containers/Markdown/OsuMarkdownImage.cs
Gagah Pangeran Rosfatiputra 28d7b06908
create OsuMarkdownImage
2021-06-10 09:38:07 +07:00

21 lines
593 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.
using Markdig.Syntax.Inlines;
using osu.Framework.Graphics.Containers.Markdown;
using osu.Framework.Graphics.Cursor;
namespace osu.Game.Graphics.Containers.Markdown
{
public class OsuMarkdownImage : MarkdownImage, IHasTooltip
{
public string TooltipText { get; }
public OsuMarkdownImage(LinkInline linkInline)
: base(linkInline.Url)
{
TooltipText = linkInline.Title;
}
}
}