mirror of
https://github.com/ppy/osu
synced 2025-02-08 22:27:14 +00:00
update TestCase
This commit is contained in:
parent
c2c9095b02
commit
c877a5a8b7
@ -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<Score> scores = new List<Score>();
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ using osu.Framework.Input;
|
||||
|
||||
namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
|
||||
public class OsuHoverContainer : OsuClickableContainer
|
||||
{
|
||||
private Color4 hoverColour;
|
||||
|
@ -114,7 +114,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
}
|
||||
}
|
||||
|
||||
private class ScoreFlowContainer : Container<DrawableScore>
|
||||
public class ScoreFlowContainer : Container<DrawableScore>
|
||||
{
|
||||
private readonly FillFlowContainer<DrawableScore> scores;
|
||||
private readonly OsuClickableContainer showMoreText;
|
||||
|
Loading…
Reference in New Issue
Block a user