Convert to readonly struct and replace with constructor temporarily

This commit is contained in:
Salman Ahmed
2021-08-31 20:45:32 +03:00
parent 208f66cc76
commit 3969350c9a
3 changed files with 22 additions and 16 deletions

View File

@ -28,11 +28,12 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
protected override float GetDataPointHeight(long playCount) => playCount;
protected override UserGraphTooltipContent GetTooltipContent(DateTime date, long playCount) => new UserGraphTooltipContent
protected override UserGraphTooltipContent GetTooltipContent(DateTime date, long playCount)
{
Name = tooltipCounterName,
Count = playCount.ToLocalisableString("N0"),
Time = date.ToLocalisableString("MMMM yyyy")
};
return new UserGraphTooltipContent(
tooltipCounterName,
playCount.ToLocalisableString("N0"),
date.ToLocalisableString("MMMM yyyy"));
}
}
}