mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
update TestCase
This commit is contained in:
@ -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", () =>
|
AddStep("Add Best Performances", () =>
|
||||||
{
|
{
|
||||||
List<Score> scores = new List<Score>();
|
List<Score> scores = new List<Score>();
|
||||||
@ -91,6 +69,30 @@ namespace osu.Desktop.Tests.Visual
|
|||||||
}
|
}
|
||||||
ranks.ScoresBest = scores.ToArray();
|
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
|
namespace osu.Game.Graphics.Containers
|
||||||
{
|
{
|
||||||
|
|
||||||
public class OsuHoverContainer : OsuClickableContainer
|
public class OsuHoverContainer : OsuClickableContainer
|
||||||
{
|
{
|
||||||
private Color4 hoverColour;
|
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 FillFlowContainer<DrawableScore> scores;
|
||||||
private readonly OsuClickableContainer showMoreText;
|
private readonly OsuClickableContainer showMoreText;
|
||||||
|
Reference in New Issue
Block a user