Add selection mask testcases

# Conflicts:
#	osu.Game/Tests/Visual/SelectionBlueprintTestCase.cs
This commit is contained in:
smoogipoo
2018-11-06 16:58:10 +09:00
parent 8be6e351f5
commit 2e0e1befe9
3 changed files with 102 additions and 1 deletions

View File

@ -29,9 +29,12 @@ namespace osu.Game.Tests.Visual
[BackgroundDependencyLoader]
private void load()
{
base.Content.Add(blueprint = CreateBlueprint());
blueprint = CreateBlueprint();
blueprint.Depth = float.MinValue;
blueprint.SelectionRequested += (_, __) => blueprint.Select();
Add(blueprint);
AddStep("Select", () => blueprint.Select());
AddStep("Deselect", () => blueprint.Deselect());
}