Convert to using sheared overlay container

Add better click-to-dismiss logic for sheader overlays
This commit is contained in:
Dean Herbert
2022-04-20 16:51:26 +09:00
parent 5c21a55e00
commit 0b81ae9de2
2 changed files with 75 additions and 148 deletions

View File

@ -165,7 +165,7 @@ namespace osu.Game.Tests.Visual.UserInterface
AddStep("click outside content", () =>
{
InputManager.MoveMouseTo(overlay.ScreenSpaceDrawQuad.TopLeft - new Vector2(1));
InputManager.MoveMouseTo(new Vector2(overlay.ScreenSpaceDrawQuad.TopLeft.X, overlay.ScreenSpaceDrawQuad.Centre.Y));
InputManager.Click(MouseButton.Left);
});