mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
21 lines
566 B
C#
21 lines
566 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 osu.Framework.Graphics.Cursor;
|
||
|
using osu.Framework.Localisation;
|
||
|
|
||
|
namespace osu.Game.Graphics.Sprites
|
||
|
{
|
||
|
public sealed partial class TruncatingSpriteText : OsuSpriteText, IHasTooltip
|
||
|
{
|
||
|
public LocalisableString TooltipText => Text;
|
||
|
|
||
|
public override bool HandlePositionalInput => IsTruncated;
|
||
|
|
||
|
public TruncatingSpriteText()
|
||
|
{
|
||
|
Truncate = true;
|
||
|
}
|
||
|
}
|
||
|
}
|