Moved Info and Background into own container

This commit is contained in:
Denrage
2021-04-21 13:53:25 +02:00
parent de04caeace
commit 9fba87f67a
2 changed files with 45 additions and 21 deletions

View File

@ -135,15 +135,15 @@ namespace osu.Game.Tests.Visual.SongSelect
private void selectBeatmap([CanBeNull] IBeatmap b)
{
BeatmapInfoWedge.BufferedWedgeBackground backgroundBefore = null;
BeatmapInfoWedge.BeatmapInfoWedgeContainer containerBefore = null;
AddStep($"select {b?.Metadata.Title ?? "null"} beatmap", () =>
{
backgroundBefore = infoWedge.Background;
containerBefore = infoWedge.Container;
infoWedge.Beatmap = Beatmap.Value = b == null ? Beatmap.Default : CreateWorkingBeatmap(b);
});
AddUntilStep("wait for async load", () => infoWedge.Background != backgroundBefore);
AddUntilStep("wait for async load", () => infoWedge.Container != containerBefore);
}
private IBeatmap createTestBeatmap(RulesetInfo ruleset)
@ -196,6 +196,8 @@ namespace osu.Game.Tests.Visual.SongSelect
public new BufferedWedgeBackground Background => base.Background;
public new WedgeInfoText Info => base.Info;
public new BeatmapInfoWedgeContainer Container => base.Container;
}
private class TestHitObject : ConvertHitObject, IHasPosition