mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 18:07:27 +09:00
Fix osu! default tooltips not displaying
This commit is contained in:
parent
97580a4117
commit
a51fbfa31b
@ -30,13 +30,14 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
private readonly OsuSpriteText text;
|
private readonly OsuSpriteText text;
|
||||||
private bool instantMovement = true;
|
private bool instantMovement = true;
|
||||||
|
|
||||||
public override string TooltipText
|
public override bool SetContent(object content)
|
||||||
{
|
{
|
||||||
set
|
if (!(content is string contentString))
|
||||||
{
|
return false;
|
||||||
if (value == text.Text) return;
|
|
||||||
|
|
||||||
text.Text = value;
|
if (contentString == text.Text) return true;
|
||||||
|
|
||||||
|
text.Text = contentString;
|
||||||
|
|
||||||
if (IsPresent)
|
if (IsPresent)
|
||||||
{
|
{
|
||||||
@ -45,7 +46,8 @@ namespace osu.Game.Graphics.Cursor
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
AutoSizeDuration = 0;
|
AutoSizeDuration = 0;
|
||||||
}
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OsuTooltip()
|
public OsuTooltip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user