mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 14:22:55 +08:00
Convert to class
to allow not displaying tooltips
With `struct` content, it is never possible to not show a tooltip.
This commit is contained in:
parent
3969350c9a
commit
b0d7104650
@ -125,7 +125,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (data == null || hoveredIndex == -1)
|
if (data == null || hoveredIndex == -1)
|
||||||
return default;
|
return null;
|
||||||
|
|
||||||
var (key, value) = data[hoveredIndex];
|
var (key, value) = data[hoveredIndex];
|
||||||
return GetTooltipContent(key, value);
|
return GetTooltipContent(key, value);
|
||||||
@ -295,7 +295,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public readonly struct UserGraphTooltipContent
|
public class UserGraphTooltipContent
|
||||||
{
|
{
|
||||||
// todo: could use init-only properties on C# 9 which read better than a constructor.
|
// todo: could use init-only properties on C# 9 which read better than a constructor.
|
||||||
public LocalisableString Name { get; }
|
public LocalisableString Name { get; }
|
||||||
|
Loading…
Reference in New Issue
Block a user