Update usages of IHasTooltip in line with framework localisation changes

This commit is contained in:
Bartłomiej Dach
2021-06-25 19:10:04 +02:00
parent ee6cf4396a
commit 50c27d2635
42 changed files with 87 additions and 50 deletions

View File

@ -9,6 +9,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Effects;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Localisation;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Graphics.Cursor
@ -32,7 +33,7 @@ namespace osu.Game.Graphics.Cursor
public override bool SetContent(object content)
{
if (!(content is string contentString))
if (!(content is LocalisableString contentString))
return false;
if (contentString == text.Text) return true;