diff --git a/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs b/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs index febf1e76c9..4d83df6a93 100644 --- a/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs +++ b/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs @@ -96,22 +96,6 @@ namespace osu.Game.Screens.Select.Leaderboards } } - public override void Hide() => State = Visibility.Hidden; - public override void Show() => State = Visibility.Visible; - public void ToggleVisibility() => State = State == Visibility.Visible ? Visibility.Hidden : Visibility.Visible; - - protected override bool OnHover(Framework.Input.InputState state) - { - background.FadeTo(0.5f, 300, EasingTypes.OutQuint); - return base.OnHover(state); - } - - protected override void OnHoverLost(Framework.Input.InputState state) - { - background.FadeTo(background_alpha, 200, EasingTypes.OutQuint); - base.OnHoverLost(state); - } - public LeaderboardScore(Score score, int rank) { Score = score; @@ -272,6 +256,23 @@ namespace osu.Game.Screens.Select.Leaderboards } } + public void ToggleVisibility() => State = State == Visibility.Visible ? Visibility.Hidden : Visibility.Visible; + + public override void Hide() => State = Visibility.Hidden; + public override void Show() => State = Visibility.Visible; + + protected override bool OnHover(Framework.Input.InputState state) + { + background.FadeTo(0.5f, 300, EasingTypes.OutQuint); + return base.OnHover(state); + } + + protected override void OnHoverLost(Framework.Input.InputState state) + { + background.FadeTo(background_alpha, 200, EasingTypes.OutQuint); + base.OnHoverLost(state); + } + private class GlowingSpriteText : Container { public GlowingSpriteText(string text, string font, int textSize, Color4 textColour, Color4 glowColour)