mirror of
https://github.com/osukey/osukey.git
synced 2025-07-22 19:00:05 +09:00
appease CodeFactor and AppVeyor
This commit is contained in:
@ -10,7 +10,7 @@ using osu.Game.Graphics.UserInterface;
|
|||||||
using osuTK;
|
using osuTK;
|
||||||
using osuTK.Graphics;
|
using osuTK.Graphics;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Profile
|
namespace osu.Game.Overlays.Profile.Header
|
||||||
{
|
{
|
||||||
public class ProfileHeaderTabControl : TabControl<string>
|
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 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
|
public class RankGraphTooltip : VisibilityContainer, ITooltip
|
||||||
{
|
{
|
||||||
private readonly RankGraph graph;
|
|
||||||
private readonly OsuSpriteText globalRankingText, timeText;
|
private readonly OsuSpriteText globalRankingText, timeText;
|
||||||
private readonly Box background;
|
private readonly Box background;
|
||||||
|
|
||||||
public string TooltipText { get; set; }
|
public string TooltipText { get; set; }
|
||||||
|
|
||||||
public RankGraphTooltip(RankGraph graph)
|
public RankGraphTooltip()
|
||||||
{
|
{
|
||||||
this.graph = graph;
|
|
||||||
AutoSizeAxes = Axes.Both;
|
AutoSizeAxes = Axes.Both;
|
||||||
Masking = true;
|
Masking = true;
|
||||||
CornerRadius = 10;
|
CornerRadius = 10;
|
||||||
|
@ -353,7 +353,6 @@ namespace osu.Game.Overlays.Profile
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
|
Reference in New Issue
Block a user