// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Sprites; using osu.Framework.Localisation; namespace osu.Game.Graphics.Sprites { public sealed partial class TruncatingSpriteText : OsuSpriteText, IHasTooltip { public bool ShowTooltip { get; init; } = true; public LocalisableString TooltipText => Text; public override bool HandlePositionalInput => IsTruncated && ShowTooltip; public TruncatingSpriteText() { ((SpriteText)this).Truncate = true; } } }