From b1dd64983dcc5eb7b0bd76cedfc9de9d257ea5f9 Mon Sep 17 00:00:00 2001 From: jai_ Date: Fri, 29 Dec 2017 19:05:50 +0000 Subject: [PATCH 1/3] Add tooltip text to supporter icon --- osu.Game/Overlays/Profile/SupporterIcon.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osu.Game/Overlays/Profile/SupporterIcon.cs b/osu.Game/Overlays/Profile/SupporterIcon.cs index 570d5a13bb..0b40281193 100644 --- a/osu.Game/Overlays/Profile/SupporterIcon.cs +++ b/osu.Game/Overlays/Profile/SupporterIcon.cs @@ -1,19 +1,22 @@ -// Copyright (c) 2007-2017 ppy Pty Ltd . +// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using OpenTK; using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Shapes; using osu.Game.Graphics; using osu.Game.Graphics.Backgrounds; namespace osu.Game.Overlays.Profile { - public class SupporterIcon : CircularContainer + public class SupporterIcon : CircularContainer, IHasToolTip { private readonly Box background; + + public string TooltipText => "osu!supporter"; public SupporterIcon() { From 6de41ba1729a78a25f65028a4019f45bdb9ff6e8 Mon Sep 17 00:00:00 2001 From: jai_ Date: Fri, 29 Dec 2017 19:16:43 +0000 Subject: [PATCH 2/3] Trim whitespace --- osu.Game/Overlays/Profile/SupporterIcon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Profile/SupporterIcon.cs b/osu.Game/Overlays/Profile/SupporterIcon.cs index 0b40281193..1ac6daa19e 100644 --- a/osu.Game/Overlays/Profile/SupporterIcon.cs +++ b/osu.Game/Overlays/Profile/SupporterIcon.cs @@ -15,7 +15,7 @@ namespace osu.Game.Overlays.Profile public class SupporterIcon : CircularContainer, IHasToolTip { private readonly Box background; - + public string TooltipText => "osu!supporter"; public SupporterIcon() From 9660e0885b11acbcade28cd1799dc39501fe1478 Mon Sep 17 00:00:00 2001 From: jai_ Date: Fri, 29 Dec 2017 19:20:37 +0000 Subject: [PATCH 3/3] correctly name tooltip interface --- osu.Game/Overlays/Profile/SupporterIcon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Profile/SupporterIcon.cs b/osu.Game/Overlays/Profile/SupporterIcon.cs index 1ac6daa19e..b5cd94e54b 100644 --- a/osu.Game/Overlays/Profile/SupporterIcon.cs +++ b/osu.Game/Overlays/Profile/SupporterIcon.cs @@ -12,7 +12,7 @@ namespace osu.Game.Overlays.Profile { - public class SupporterIcon : CircularContainer, IHasToolTip + public class SupporterIcon : CircularContainer, IHasTooltip { private readonly Box background;