diff --git a/osu.Desktop.Tests/Visual/TestCaseUserRanks.cs b/osu.Desktop.Tests/Visual/TestCaseUserRanks.cs index a561559fdc..278f3408bf 100644 --- a/osu.Desktop.Tests/Visual/TestCaseUserRanks.cs +++ b/osu.Desktop.Tests/Visual/TestCaseUserRanks.cs @@ -39,28 +39,6 @@ namespace osu.Desktop.Tests.Visual } }); - AddStep("Add First Place", () => ranks.ScoresFirst = new[] - { - new Score - { - Rank = ScoreRank.A, - Accuracy = 0.735, - PP = 666, - Date = DateTimeOffset.UtcNow, - Mods = new Mod[] { new ModAutoplay(), new ModDoubleTime(), new OsuModEasy() }, - Beatmap = new BeatmapInfo - { - Metadata = new BeatmapMetadata - { - Title = "FREEDOM DiVE", - Artist = "xi" - }, - Version = "FOUR DIMENSIONS", - OnlineBeatmapID = 129891, - } - } - }); - AddStep("Add Best Performances", () => { List scores = new List(); @@ -91,6 +69,30 @@ namespace osu.Desktop.Tests.Visual } ranks.ScoresBest = scores.ToArray(); }); + + AddStep("Add First Place", () => ranks.ScoresFirst = new[] + { + new Score + { + Rank = ScoreRank.A, + Accuracy = 0.735, + PP = 666, + Date = DateTimeOffset.UtcNow, + Mods = new Mod[] { new ModAutoplay(), new ModDoubleTime(), new OsuModEasy() }, + Beatmap = new BeatmapInfo + { + Metadata = new BeatmapMetadata + { + Title = "FREEDOM DiVE", + Artist = "xi" + }, + Version = "FOUR DIMENSIONS", + OnlineBeatmapID = 129891, + } + } + }); + + AddStep("Show More", ((RanksSection.ScoreFlowContainer)ranks.Children[1]).ShowMore); } } } diff --git a/osu.Game/Graphics/Containers/OsuHoverContainer.cs b/osu.Game/Graphics/Containers/OsuHoverContainer.cs index efac292c76..3f82ad2179 100644 --- a/osu.Game/Graphics/Containers/OsuHoverContainer.cs +++ b/osu.Game/Graphics/Containers/OsuHoverContainer.cs @@ -8,7 +8,6 @@ using osu.Framework.Input; namespace osu.Game.Graphics.Containers { - public class OsuHoverContainer : OsuClickableContainer { private Color4 hoverColour; diff --git a/osu.Game/Overlays/Profile/Sections/RanksSection.cs b/osu.Game/Overlays/Profile/Sections/RanksSection.cs index 6c3814a75f..e7c32f76e4 100644 --- a/osu.Game/Overlays/Profile/Sections/RanksSection.cs +++ b/osu.Game/Overlays/Profile/Sections/RanksSection.cs @@ -114,7 +114,7 @@ namespace osu.Game.Overlays.Profile.Sections } } - private class ScoreFlowContainer : Container + public class ScoreFlowContainer : Container { private readonly FillFlowContainer scores; private readonly OsuClickableContainer showMoreText;