mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:47:25 +08:00
appease CodeFactor and AppVeyor
This commit is contained in:
parent
da99161736
commit
360c17e2c7
@ -10,7 +10,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Profile
|
||||
namespace osu.Game.Overlays.Profile.Header
|
||||
{
|
||||
public class ProfileHeaderTabControl : TabControl<string>
|
||||
{
|
||||
|
@ -190,19 +190,17 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
|
||||
public string TooltipText => User.Value?.Statistics?.Ranks.Global == null ? "" : $"{ranks[dayIndex].Value:#,##0}|{ranked_days - ranks[dayIndex].Key + 1}";
|
||||
|
||||
public ITooltip GetCustomTooltip() => new RankGraphTooltip(this);
|
||||
public ITooltip GetCustomTooltip() => new RankGraphTooltip();
|
||||
|
||||
public class RankGraphTooltip : VisibilityContainer, ITooltip
|
||||
{
|
||||
private readonly RankGraph graph;
|
||||
private readonly OsuSpriteText globalRankingText, timeText;
|
||||
private readonly Box background;
|
||||
|
||||
public string TooltipText { get; set; }
|
||||
|
||||
public RankGraphTooltip(RankGraph graph)
|
||||
public RankGraphTooltip()
|
||||
{
|
||||
this.graph = graph;
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Masking = true;
|
||||
CornerRadius = 10;
|
||||
|
@ -353,7 +353,6 @@ namespace osu.Game.Overlays.Profile
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
new Container
|
||||
|
Loading…
Reference in New Issue
Block a user