Make UserHistoryGraph non-abstract

This commit is contained in:
Andrei Zavatski
2020-03-10 00:50:12 +03:00
parent f6461dc5f8
commit 2f441baeac
4 changed files with 24 additions and 22 deletions

View File

@ -197,12 +197,7 @@ namespace osu.Game.Overlays.Profile
protected readonly OsuSpriteText Counter, BottomText;
private readonly Box background;
/// <summary>
/// Text which will be shown near the <see cref="Counter"/>.
/// </summary>
protected abstract string TooltipCounterName { get; }
protected UserGraphTooltip()
protected UserGraphTooltip(string tooltipCounterName)
{
AutoSizeAxes = Axes.Both;
Masking = true;
@ -225,12 +220,13 @@ namespace osu.Game.Overlays.Profile
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(3, 0),
Children = new Drawable[]
{
new OsuSpriteText
{
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold),
Text = $"{TooltipCounterName} "
Text = tooltipCounterName
},
Counter = new OsuSpriteText
{