Update tooltip implementations

This commit is contained in:
Dean Herbert
2021-08-30 16:04:54 +09:00
parent f64efdc4a9
commit fa2bf42188
7 changed files with 15 additions and 39 deletions

View File

@ -50,14 +50,13 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
this.tooltipCounterName = tooltipCounterName;
}
public override bool SetContent(object content)
public override void SetContent(object content)
{
if (!(content is TooltipDisplayContent info) || info.Name != tooltipCounterName)
return false;
return;
Counter.Text = info.Count;
BottomText.Text = info.Date;
return true;
}
}